Pac-Man Sketch

In this sketch, I adopted a simple processing sketch of a figure that remarkably looked like Pac-Man. I used the array functions in this program and created three thousand Pac-Mans, a veritable army of them. I changed their colors to the traditional yellow using the fill function. Using the background function, I changed the background into black. The program that I used to create the army is included here.

float [] x = new float [30000];
void setup() {
size(1000,900);
smooth();
noStroke();
for (int i =0; i< x.length; i++) {
x[i] = random(-1000,200);
}
}
void draw() {
background(0);
fill(255,255,130);
for (int i = 0; i<x.length; i++) {
x[i] += 50;
float y=i*0.25;
arc(x[i], y, 12, 12, 0.52, 5.76);

}
save(“sketch_aug04.jpg”);
}

This sketch is a little over a page long. The link to this sketch is here: http://openprocessing.org/visuals/?visualID=32738