Guest User

Untitled

a guest
Oct 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. void setup(){
  2. background(#ffffff);
  3. size(1000,1000);
  4.  
  5. }
  6. void draw(){
  7. translate(150,150);
  8. for (int x = 0; x < 5; x++){
  9. rePeated();
  10. translate(170,0);
  11. }
  12. }//end of the draw
  13. void rePeated(){
  14. rectMode(CENTER);
  15. // first rectamgle
  16. fill(0);
  17. noStroke();
  18. rect(0,0,130,130);
  19. //second rectangle
  20. stroke(225);
  21. strokeWeight(2);
  22. rect(0,0,100,100);
  23.  
  24. // third rectangle
  25. noStroke();
  26. pushMatrix();
  27. rotate(radians(45));
  28. rect(0,0,130,130);
  29.  
  30. // fouryh rectangle
  31. stroke(#ffffff);
  32. strokeWeight(2);
  33. rect(0,0,90,90);
  34. popMatrix();
  35.  
  36. //fithrectangle
  37. fill(0);
  38. noStroke();
  39. rect(0,0, 80,80);
  40.  
  41.  
  42. }
Add Comment
Please, Sign In to add comment