xxxxxxxxxx
24
let numSW = 100;
let sizeSW = 60 / numSW;
let w;
let off = 0;
function setup() {
createCanvas(600, 400);
colorMode(HSB, 360, 100, 100);
w = width / numSW;
//noStroke()
}
function draw() {
background(220);
off++
for (let sw = 0; sw < numSW; sw++) {
let x = sw * w;
let h = sw * sizeSW+off;
h %= 80;
fill(h, 100, 100);
rect(x, 0, w, height);
}
}