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() {
for (int i =0; i< x.length; i++) {
x[i] = random(-1000,200);
void draw() {
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);


This sketch is a little over a page long. The link to this sketch is here: