Day 88 - Waves
Landing on something pretty special this morning. I went into this sketch with an idea of what I wanted - stacked curvy lines in alternating colours, with the same border I’ve established in the other pieces this week. However, the results of messing with the curves weren’t like anything I could have predicted. This is truly what I love about generative art.
Sketch:
Drawings:
Code:
y = 0; function setup() { createCanvas(800, 800); background(245, 243, 240); rR = random(0, 255); rG = random(0, 255); rB = random(0, 255); rS = random(2, 100); inc = TWO_PI / int(random(10, 300)); } function draw() { let a = 0.0; let i = 0; for (let i = 200; i < 600; i = i + 1) { if (y + cos(a) * rS < 200 || y + cos(a) * rS > 600) { stroke(245, 243, 240); } else { stroke(rR, rG, rB); } ellipse(i, y + cos(a) * rS, 1); a = a + inc; } y = y + 2 rR = random(0, 255); rG = random(0, 255); rB = random(0, 255); }