The purpose of this assignment is to gain practice with recursion via creating interesting graphical patterns using the recursive concept.
To get an idea of what your final recursive graphics visualization is supposed to look like
Since Halloween is only a few weeks away, here's a Sierpinski candy corn video. Check out her other videos
while you're at it!
Here's a Sierpinski valentine!, courtesy that great web-comic, xkcd!
Review the H-Tree example from the textbook and lecture.
% java Sierpinski 0 [ No output. ] % java Sierpinski 1 1 0.5 % java Sierpinski 2 2 0.5 1 0.25 1 0.25 1 0.25 % java Sierpinski 3 3 0.5 2 0.25 1 0.125 1 0.125 1 0.125 2 0.25 1 0.125 1 0.125 1 0.125 2 0.25 1 0.125 1 0.125 1 0.125
% java Sierpinski 1 % java Sierpinski 2 % java Sierpinski 3 ![]()
![]()
![]()
% java Sierpinski 4 % java Sierpinski 5 % java Sierpinski 6 ![]()
![]()
![]()
You are not allowed to use any of the examples in the book or the booksite.
One good resource for ideas is
wikipedia's list of fractals.
If you find a recursive image that you base your art off of, please cite it in your readme.