Java Applets

Here are two applets that I wrote while I was learning Java. The ideas came from an undergraduate physics class. My original code was written in Pascal and ran on a Macintosh(The toaster kind). Even though I also wrote the Java on a Mac it great to be able to run them anywhere.

Coupled Harmonic Oscillators, a little applet with two masses and three springs that you can set different initial conditions for and watch move.

Sierpinski Gasket, a little applet that draws a Sierpinski Gasket with 3, 5, or 7 sides by using an random point routine.