Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. background(255,255,255);
  2. size(1250,1250);
  3. rectMode (CENTER);
  4. noFill();
  5.  
  6.  
  7. for (int baseSquareSize = 250; baseSquareSize > 0; baseSquareSize -= 8){
  8. for(int x = 125; x < 1250; x = x + 250){
  9. for(int y = 125; y < 1250; y = y + 250){
  10. stroke (random(200,255), (random(255)), random(255));
  11. strokeWeight(random(0.3,5));
  12. //rotate(random(radians(20)));
  13. //squareSize = 250 * random(0.75,1.25);
  14. pushMatrix();
  15. translate(x,y);
  16. rotate(random(-PI/2,PI/2));
  17. rect(0, 0, 250, 250);
  18. popMatrix();
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement