xxxxxxxxxx
15
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(200);
rotateX(mouseX * 0.01);
rotateY(mouseY * 0.01);
box(100);
if(mouseIsPressed){
fill(100)
} else {
fill(random(255), random(255), random(255))
}
}