Creative Computing Intro: Day 1

Today, of August 1, 2011, I made my first sketch in the tech language of Processing. We downloaded the program and started to learn the intricate language. We were then assigned to create a sketch  of anything, anything you wanted. Unfortunately for me, I  was feeling terrible, and I couldn’t think of a single thing. I was absently typing different shapes and filling in different colors when I was struck by a bright pink. What the…! I didn’t  notice that I actually said it aloud. A classmate (campmate?) immediately looked over my shoulder and exclaimed,”That looks exactly like a pig!”

“Pig!” I though. That’s what I decided to create. So for an hour or two I toiled on a strange tail-less pig.  The program was quite easy, but it was laborious and tooke a while to get all the dimensions nin the right place. The program, a little more than a page long, is presented here:

size(900,900);

fill(255, 0, 140);
smooth();
line(100, 550, 800, 550);
line(100, 300, 800, 300);
ellipse (450, 450, 450, 450);
beginShape();
vertex(400, 250);
vertex(400, 50);
vertex(500, 50);
vertex(500, 250);
endShape();
fill(0,0,0);
ellipse(430, 70, 30, 30);
ellipse(480, 70, 30, 30);
fill(255, 0, 140);
ellipse( 450, 200, 250, 200);
fill(0,0,0);
ellipse(400, 200, 50, 50);
ellipse(500, 200, 50, 50);

This program, if run in processing will show a picture of a pig (with no tail) with nostrils and eyes. It is my third processing sketch I have done.