Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int size = 100;
- void setup () {
- size (1280, 747);
- background (0);
- noStroke ();
- fill (255);
- int count = 0;
- for (int x = 0; x < width; x += size) {
- for (int y = (count % 2 == 0) ? 0 : size; y < height; y += size * 2)
- square (x, y, size);
- ++count;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement