xxxxxxxxxx
13
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
translate(200,200); // Move origin to center
scale(mouseX/100,mouseY/100)
rotate(frameCount * 0.05); // Rotate over time
rect(-25, -25, 50, 50); // Center the rectangle
}