Skip to content

Instantly share code, notes, and snippets.

View johnSerrano's full-sized avatar

John H Serrano johnSerrano

  • google
  • Seattle
View GitHub Profile
Color[][] color_grid = new Color[6][6]; //new array
// imagine i just instantiated all the elements of grid
Color temp;
for (int y == 0; y < 5; y++){
temp = color_grid[y][0]; //for safekeeping
for (int x == 0; x < 4; x++)
color_grid[y][x] = color_grid[y][x+1];