adds yellow balls to underside of rendered quad arms and adds overhead lighting

This commit is contained in:
Brendan Haines 2015-05-08 20:45:38 -06:00
parent 8d4930c224
commit eeefced2b1

View File

@ -23,28 +23,47 @@ class DisplayNewQuad extends Display3D {
*/
public void drawObject() {
int s = 1;
fill( 255 );
noStroke();
lights();
fill( 255 );
rotateZ( (float)( Math.PI/4 ) );
translate( 80, 0, 0 );
box( 100, 10, 10 );
translate( 40, 0, -20 );
fill( 255, 255, 0 );
sphere( 15 );
translate( -40, 0, 20 );
translate( -80, 0, 0 );
fill( 255 );
rotateZ( (float)( Math.PI/2 ) );
translate( 80, 0, 0 );
box( 100, 10, 10 );
translate( 40, 0, -20 );
fill( 255, 255, 0 );
sphere( 15 );
translate( -40, 0, 20 );
translate( -80, 0, 0 );
fill( 255, 0, 0 );
rotateZ( (float)( Math.PI/2 ) );
translate( 80, 0, 0 );
box( 100, 10, 10 );
translate( 40, 0, -20 );
fill( 255, 255, 0 );
sphere( 15 );
translate( -40, 0, 20 );
translate( -80, 0, 0 );
fill( 255, 0, 0 );
rotateZ( (float)( Math.PI/2 ) );
translate( 80, 0, 0 );
box( 100, 10, 10 );
translate( 40, 0, -20 );
fill( 255, 255, 0 );
sphere( 15 );
translate( -40, 0, 20 );
translate( -80, 0, 0 );
rotateZ( (float)( Math.PI/4 ) );