xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
function draw() {
colorMode(HSB, 360,100,100);
var col = map (mouseX, 0, width, 0, 360);
stroke(col,100,100)
if (mouseIsPressed)
line(mouseX,0,mouseX,height);
translate (width/2,height/2);
rotate(radians(col) );
rectMode(CENTER)
noFill();
rect(0,0,col,col);
ellipse(mouseX, mouseY, 20, 20);
}