xxxxxxxxxx
15
function setup() {
createCanvas(600, 400);
}
function draw() {
background(220);
let toastRed = 0;
let toastBlue = 255;
for (let i = 0; i < 25; i++) {
toastRed = toastRed + 20;
toastBlue = toastBlue -20;
fill(toastRed,0,toastBlue);
rect(20 + (i*20), 190, 10, 10)
}
}