xxxxxxxxxx
void setup() {
size(500, 500, P3D);
}
void draw() {
background (255);
directionalLight(126, 126, 126, 0, 0, -1);
//location
translate(width/2, height/2, 0);
rotateY(mouseY*-0.005);
rotateX(mouseX*-0.005);
fill (0, 255, 255);
box(100);
noStroke();
fill (255, 0, 0, 50);
sphere (200);
}