xxxxxxxxxx
class Cube {
float cubeSize;
color cubeColor;
float cubeLocation;
Cube() {
cubeSize = random(70, 100);
cubeLocation = random(2, 10);
}
void display() {
fill(cubeColor);
//noFill();
translate(width/cubeLocation, height/cubeLocation, 0);
rotateY(mouseY*-0.05);
rotateX(mouseX*-0.05);
box(cubeSize);
}
}