xxxxxxxxxx
16
function setup() {
createCanvas(400, 400);
colorMode(HSB);
noStroke();
}
function draw() {
background(220);
let hueColor = map(mouseX, 0, width, 0, 360);
fill(hueColor, 100, 100);
rect(0, 0, width/3, height);
fill(hueColor, 50, 70);
rect(width/3, 0, width/3, height);
fill(hueColor, 80, 40);
rect(2*width/3, 0, width/3, height);
}