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 @@