Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 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 = 0; x < 1250; x = x + 250){
  9. for(int y = 0; y < 1250; y = y + 250){
  10.  
  11. stroke (random(200,255), (random(255)), random(255));
  12. strokeWeight(random(0.3,5));
  13. //rotate(random(radians(20)));
  14.  
  15.  
  16.  
  17.  
  18. //squareSize = 250 * random(0.75,1.25);
  19.  
  20. pushMatrix();
  21. translate(x,y);
  22. rotate(random(-PI/2,PI/2));
  23. rect(0, 0, 250, 250);
  24. popMatrix();
  25.  
  26.  
  27.  
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement