2018.12.08
Transition

Created 2018-12-09 / Edited 2018-12-09

img:transition.jpg

let gray = amt => color(amt, amt, amt);

function setup() {
randomSeed(7);
createCanvas(600, 600);

for (let i = 0; i < 200; i++) {
x1 = randomGaussian(300, 120);
y1 = randomGaussian(300, 50);
y2 = randomGaussian(300, 50);
fill(gray(x1 / 600 * 255));
line(x1, y1, x1, y2);
ellipse(x1, y1, 20, 20);
ellipse(x1, y2, 20, 20);
}
}

(View full source at https://repl.it/@BrockWilcox/Transition)