Science and Computers I -- PHY307/607

Lab 7. - Drawing Simple Graphs and Fractals

Plotting points and lines in Java

Drawing the Sierpinski gasket

  1. Go to the Labs section of the PHY307 pages. Load the applet Sierpinski Applet. Hit the button. You should see the Sierpinski triangle we discussed in class appear slowly on the screen. The applet is iterating a 2d map similar to the logistic map and producing a set of (x,y) values which are then plotted to the screen. The Sierpinski triangle corresponds to a very special choice of 2D mapping function.

To get credit for this lab you need to
  1. Email me the url to your Web page so that I can take a look at your working Simple2 applet.
The deadline to get these things done is next Thursday.

Back to the PHY307 Homepage

This page maintained by Simon Catterall, last updated 11 October, 2000.