Notes
Outline
Java Final Project
plain-vanilla powerpoint
What is this Project?
This applet draws a type of path mathematicians call a worm; this particular type of worm is called a spirolateral.
Spirolateral worms are characterized by having a certain degree angle associated with their turns, a certain number of turns they take, and a certain number of iterations to perform.
Some simple 90° spirolaterals
Methods used to draw the spirolaterals
awt GUI objects were used to make an interface.
A paint method and an ActionListener are used to draw, and then redraw the spirolateral.
Math.sin() and Math.cos() are used to find the x and y postitions of the end point of an angled line.
for loops and switch-case blocks provide the iterating and color changing functionality.
resources