Recursive Graphics Project

In the fall I took CIS 110 (the intro to computer science class here at Penn) as did other students in our class.  For one of our projects we had to create recursive graphics in java that, for each increasing numerical command, would produce increasingly iterated graphics.  For those of you who don’t know, recursion is a technique used to reiterate through lines of code and perform a function multiple times without having to copy and paste the same code over again.  Here is the link to a gallery of some really cool student creations: 

http://www.cis.upenn.edu/~cis110/13su/hw/hw03/gallery.shtml

Additionally, below is just one example from the student gallery:

Image

Finally, this creation below was mine.  I was not as advanced as many students, but I still enjoyed the project.  The picture to the left features 0 iterations of the code, while the one to the right goes through 9 iterations.

ImageImage

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s