xxxxxxxxxx
23
var h = 0;
function setup() {
createCanvas(400, 400);
colorMode(HSB, 360, 100, 100);
}
function draw() {
background(220);
fill(h, 80, 100);
rect(100, 100, 200);
}
function mouseClicked(){
h += 30;
if (h > 360){
h = 0;
}
}