xxxxxxxxxx
18
function setup() {
createCanvas(600, 600);
colorMode(HSB,360,100,100);
noLoop();
}
function draw() {
background(0,0,100);
for (let i = 0; i < 10; i = i + 1) {
let x = 50 + i * 50;
let y = 300;
let h = i * 20;
let s = random(20,80);
fill(h,s,100);
rect (x,y,40,40);
}
}