xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
// specify color in hue / saturation / brightness
colorMode(HSB);
}
function draw() {
background(255);
let modulo1 = frameCount % 32; // will go from 0 to 31
fill(modulo1, 100, 100);
ellipse(100, 200, modulo1, modulo1);
let modulo2 = frameCount % 64; // will go from 0 to 63
fill(modulo2, 100, 100);
ellipse(200, 200, modulo2, modulo2);
let modulo3 = frameCount % 128; // will go from 0 to 127
fill(modulo3, 100, 100);
ellipse(300, 200, modulo3, modulo3);
}