From 676608f943583277be9a6da6ae8891673c95910c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=88=C2=87Hakan?= Date: Thu, 10 Mar 2022 21:50:33 +0300 Subject: [PATCH] . --- app.js | 0 blob.js | 29 +++++++++++++++++++++++++++++ index.html | 5 ++++- styles.css | 4 ++++ 4 files changed, 37 insertions(+), 1 deletion(-) delete mode 100644 app.js create mode 100644 blob.js diff --git a/app.js b/app.js deleted file mode 100644 index e69de29..0000000 diff --git a/blob.js b/blob.js new file mode 100644 index 0000000..c0c2450 --- /dev/null +++ b/blob.js @@ -0,0 +1,29 @@ + +var yoff = 0.0; + +function setup() { + createCanvas(windowWidth -10,windowHeight -20); +} + +function draw() { + background(50); + + translate(width / 2, height / 2); + + var radius = 300; + + beginShape(); + var xoff = 0; + for (var a = 0; a < 6; a += 0.1) { + var offset = map(noise(xoff, yoff), 0, 1, -50, 50); + var r = radius + offset; + var x = r * cos(a); + var y = r * sin(a); + vertex(x, y); + xoff += 0.09; + //ellipse(x, y, 4, 4); + } + endShape(); + + yoff += 0.005; +} \ No newline at end of file diff --git a/index.html b/index.html index cec9428..bc35681 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,8 @@ - + + @@ -56,5 +57,7 @@

Dice fight!

24.02.2022

+ + \ No newline at end of file diff --git a/styles.css b/styles.css index d63d601..29e1523 100644 --- a/styles.css +++ b/styles.css @@ -2,6 +2,10 @@ margin: 0; padding: 0; } +#blob +{ + z-index: 999; +} html{ scroll-behavior: smooth; }