Advertisement
xeromino

charlotte

May 11th, 2017
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   for (int i=0; i<gridSize; i++) {
  2.     for (int j=0; j<gridSize; j++) {
  3.  
  4.       fill(140, 180); // shadow
  5.       rect(gap * (i+1) + cellsize * i + offsetX, gap * (j+1) + cellsize * j + offsetY, cellsize, cellsize);
  6.  
  7.       fill(247, 57, 57, 180); // rectangle
  8.       rect(gap * (i+1) + cellsize * i, gap * (j+1) + cellsize * j, cellsize, cellsize);
  9.       println("i=", i, "j =", j);
  10.     }
  11.   }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement