Samples from "Computer Graphics with Open GL" by Donald D. Hearn