void setup(){
size(500,500,P3D);
background(0);
stroke(255,150,20);
smooth();
lights();
}
void draw(){
translate(300, 250, 62);
rotateY(0.6);
rotateX(0.6);
box(120);
sphere(85);
translate(-150, -100, 0);
sphere(33);
translate(120, -100,0);
sphere(55);
translate(-120,250,0);
sphere(20);
}
void mousePressed() {
translate(mouseX,mouseY,1);
sphere(20);
}
No hay comentarios:
Publicar un comentario