Saturn Devouring His Son: Coding Remake

saturn

The painting above is titled “Saturn Devouring his son” and was created by  Francisco Goya. I used coding to recreate this piece, using ellipses, squares and triangles:

illuminatisaturnsaturnw:ostrokecirclesaturn

boxsaturn1.jpg

boxsaturn2.jpg

The code below is what I used to create the Saturn that is made of boxes:

PImage saturn;

void setup () {
size (470,750);
saturn = loadImage(“saturn.jpg”);
background (30);
}

void draw (){
//image(saturn, 0, 0);
float x = random(width);
float y = random(height);
color c = saturn.get(int(x),int(y));
fill(c);
stroke (c);
rect (x,y,10,10);

//Credit to Daniel Shiffman
}

 

 

 

 

 

 

 

 

 

Advertisements

About nadiaparfait1

I am currently attending Alfred State college. My major is Digital Media and Animation. I create art that expresses my emotions and experiences, incorporated with the knowledge that I obtain from school.
This entry was posted in Non-Time Based and tagged , , , . Bookmark the permalink.

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