This page demonstrates some applets related to Java applications discussed in Appendix E of Computer Graphics for Java Programmers, 2nd Edition.


Section E.1. Platonic solids: dodecahedron




Section E.1. Platonic solids: icosahedron




Section E.2. Sphere representations
A sphere approximated by triangles




Section E.4. Beams in a spiral
There will be n beams. Each next beam is turned alpha degrees compared with the previous one.
For each beam, height = width = 1, length (not less than 1) can be set below.




Section E.5. Functions of two variables

In the expression for z = f(x, y), you may use only

In particular, do not use unary minus signs, other than for constants. For example, instead of   -x * y / 5
you should write either   0 - x * y / 5   or simply   -0.2 * x * y  as you can try by using copy and paste.