xxxxxxxxxx
18
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
push();
translate(50,50);
rotate(2*PI*mouseX/width);
rect(-50,-50,50);
rect(0,0,50);
circle(0,0,10);
pop();
rect(200,200,100);
textSize(20);
text("Move Mouse to rotate",200,350);
}