Assignment 2- Radoslaw Bafia- Drawing w/ Processing Sunrise

In this second assignment I decided to try and draw a sunset using simple lines and ellipse along with some loop functions. As seen in the image below The script is simply assigning variables to numbers and assigning those numbers to points or coordinates along a line or ellipse. I started by defining the screen size and background color. Next I used simple line and ellipse scripts to draw the first line. Once I had those points established I made it loop 7 times and mirror on the other side. See code and images below for further explanation:

Image Hosted by ImageShack.us
By rbafia at 2012-01-24
Image Hosted by ImageShack.us
By rbafia at 2012-01-24
Image Hosted by ImageShack.us
By rbafia at 2012-01-24

The final image shows when the value of the loop is changes, resulting in a more interesting image. I am still struggling with writing a function that will work exactly how I want it, but that is a limitation of the math behind the script and not the script itself.

Until next week,

Randy

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