#NEWLINE# @ win . event #NEWLINE# def on_draw( ) : #NEWLINE# #INDENT# global xrot , yrot #NEWLINE# win . clear ( ) #NEWLINE# glLoadIdentity ( ) #NEWLINE# glTranslatef ( ( - 1.25 ) , 1.25 , 0 ) #NEWLINE# glRotatef ( xrot , 1.0 , 0.0 , 0.0 ) #NEWLINE# glRotatef ( yrot , 0.0 , 1.0 , 0.0 ) #NEWLINE# glRotatef ( spin , 0.0 , 0.0 , 1.0 ) #NEWLINE# simple_bump_prog . install ( ) #NEWLINE# glColor3f ( 0.9 , 0.3 , 0.3 ) #NEWLINE# gluSphere ( quadratic , 1.0 , 20 , 20 ) #NEWLINE# simple_bump_prog . uninstall ( ) #NEWLINE# glLoadIdentity ( ) #NEWLINE# glTranslatef ( 1.25 , 1.25 , 0 ) #NEWLINE# glRotatef ( xrot , 1.0 , 0.0 , 0.0 ) #NEWLINE# glRotatef ( yrot , 0.0 , 1.0 , 0.0 ) #NEWLINE# glRotatef ( spin , 0.0 , 0.0 , 1.0 ) #NEWLINE# crinkle_prog . install ( ) #NEWLINE# glColor3f ( 0.3 , 0.7 , 0.3 ) #NEWLINE# gluSphere ( quadratic , 1.0 , 20 , 20 ) #NEWLINE# crinkle_prog . uninstall ( ) #NEWLINE# glLoadIdentity ( ) #NEWLINE# glTranslatef ( 0 , ( - 1 ) , 0 ) #NEWLINE# glRotatef ( xrot , 1.0 , 0.0 , 0.0 ) #NEWLINE# glRotatef ( yrot , 0.0 , 1.0 , 0.0 ) #NEWLINE# glRotatef ( spin , 0.0 , 0.0 , 1.0 ) #NEWLINE# emboss_prog . install ( ) #NEWLINE# glColor3f ( 0.3 , 0.3 , 0.8 ) #NEWLINE# gluSphere ( quadratic , 1.0 , 20 , 20 ) #NEWLINE# emboss_prog . uninstall ( )