01/21/2003
15-462 Computer Graphics I
30
Example: Rotating Color Cube
•
Adapted from [Angel, Ch. 4]
•
Problem:
–
Draw a color cube
–
Rotate it about x, y, or z axis, depending on left,
middle or right mouse click
–
Stop when space bar is pressed
–
Quit when q or Q is pressed