Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int col = 10;
- int row = 10;
- int state = 0;
- int [][] thisgen = new int [row][col];
- void setup() {
- size(400, 400);
- for (int i = 0; i < thisgen.length; i++) {
- for (int j = 0; j < thisgen.length; j++) {
- fill(200);
- rect(i*width/col, j*height/row, width/col, height/row);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement