Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size(640, 360);
- background(0);
- noStroke();
- //rectMode(CENTER);
- //for (int i=100; i>0; i--) {
- // fill(random(255));
- // rect(width/2, height/2, i*10, i*10);
- //}
- rectMode(CORNER);
- for (int x=0; x<width; x+=10) {
- for (int y=0; y<height; y+=10) {
- fill(random(255));
- rect(x, y, 10, 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement