xxxxxxxxxx
26
let x = 50;
function setup() {
createCanvas(700, 700);
background(233, 228, 222);
strokeWeight(10);
stroke(233, 228, 222);
}
function draw() {
let r = random(50, 250);
let shapes = [rect, ellipse, line];
let shape = random(shapes);
x = x + (r / 2);
if (shape == rect) {
fill(124, 151, 145, r)
} else {
fill(182, 71, 23, r)
}
shape(x, x, r, r);
if (x > 400) {
noLoop()
}
}