This page demonstrates some applets related to Java applications discussed in Chapter 6
of Computer Graphics for Java Programmers.
Exercise 6.3. Two rotating colored cubes, one partly hiding the other
Exercise 6.4. Changing position of light source
Exercise 6.5. Stairs with a variable number of steps
n = number of steps
w = width (relative to step height)
d = step depth (relative to step height)
The height of each step is 1.
Check or change the values of n, w and d below and click on the OK button.