Assignment 4

For assignment 4, using parsed data from an xml, we could draw the traingles. I defined in a custom class the random sizes as well as a range of colors at which the stroke and fill of the triangles could be. I made a new XML file with extra data sets and called for it in the code. It creates a rather cool visual, similar to something you might see in a computer generated desktop background. I want to work on making these triangles rotate and float away upon clicking, but have had some issues trying to figure out how to do that. I will have to mess around with it some more.
The pictures below are what I have so far:

Code:

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