Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2014 21:38
Show Gist options
  • Save anonymous/8720431 to your computer and use it in GitHub Desktop.
Save anonymous/8720431 to your computer and use it in GitHub Desktop.
int rows = 10;
int columns = 12;
int[] circles = new int[rows*columns];
int index;
int spacing = 50;
int circleSize = 6;
void setup()
{
circles[16] = 255;
size(500, 500);
background(200);
for(int i=0;i<rows;i++)
{
for(int j=0;j<columns;j++)
{
fill(circles[index]);
ellipse(i*spacing, j*spacing, circleSize, circleSize);
index++;
}
}
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment