xxxxxxxxxx
23
let col;
let r = 40;
function setup() {
createCanvas(650, 360);
frameRate(5);
}
function draw() {
background(255);
noStroke();
for (let y = 0; y <= height; y += 50) {
for (let x = 0; x <= width; x += 50) {
col = map(x, 0, width, 0, 255);
col1 = map(y, 0, height, 0, 255);
fill(col + col1 - 250, col + col1 - 250, col + col1);
ellipse(x, y, r);
}
r = random(35, 45);
}
}