Day 19 - Rainy Brushstrokes
Another in my series of lovely missteps that happened on the way to figuring out how to get what I wanted on Day 16. This came from playing around with noise and the make up of the repeating ellipses. Once I saw this fun rain effect, I added some opacity rules and randomness as the drops went down the canvas.
Sketch:
Drawings:
Code:
x = -10; y = 10; let xoff = 0; function setup() { createCanvas(600, 600); noStroke(); rectMode(RADIUS); background(250); } function draw() { xoff = xoff + 1; let n = noise(xoff) * 8; fill(0, height - y * 1.5 * n); ellipse(x + n, y + n, 200 / y, 100 - y); y = y + (n * 2); if (y > height) { y = 10; x = x + (n * 2); } if (x > width) { noLoop() } }