xxxxxxxxxx
25
function setup() {
createCanvas(500, 500, WEBGL);
for
}
function draw() {
background(220);
for ()
}
function makeBox(){
push();
translate(mouseX - width/2, mouseY - height/2, 0);
// converting 2d coordinates to 3d
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
box(50);
pop();}