Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int col = 10;
  2. int row = 10;
  3. int state = 0;
  4. int [][] thisgen = new int [row][col];
  5.  
  6. void setup() {
  7. size(400, 400);
  8. for (int i = 0; i < thisgen.length; i++) {
  9. for (int j = 0; j < thisgen.length; j++) {
  10. fill(200);
  11. rect(i*width/col, j*height/row, width/col, height/row);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement