CS 324e Coding Samples
Various Java programs to illustrate various concepts:
ZipfChecker and WordInventory: Initial class to check Zipf's law on a text. (In this case, the complete works of Winston Churchill from Project Gutenberg.)
Start of HelloGUI classes. Simple GUI creation in Java.
EventExampleMain (Code that shows how to create and add buttons that respond to events)
Completed version of AnimationPanel
Code for a some 2D graphics examples (GradientPaint, QuadCurve) palce in the old HelloGUI.java program.
SimpleImageExamples. Code to load and display images. (Code must be modified to use images on your machine.)
HelloUniverse. A "simple" class with a spinning colored cube. Standard program to test if Java3D is installed correctly.
CheckerboardWorld.java (Class to show set up of basic Java3D scene. From chapter 15 of the book.)
Checkers3D version to show effect of different divisions on spheres and wireframes
MorphAndLathe: program that programmatically creates 3D shapes
3DLoader zip file with classes and models to load 3D models.
FractalLand. Example from KGPJ that generates a world with random terrain. A diamond - square algorithm is used to generate random, but realistic terrian.