xxxxxxxxxx
16
function setup() {
createCanvas(400, 400);
background(200);
strokeWeight(3);
rectMode(CENTER);
}
function draw() {
var rotationalSpeed = 0.01;
push();
translate(mouseX, mouseY);
rotate(millis() * rotationalSpeed);
rect(0, 0, 90, 30);
pop();
}