Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- background(#ffffff);
- size(1000,1000);
- }
- void draw(){
- translate(150,150);
- for (int x = 0; x < 5; x++){
- rePeated();
- translate(170,0);
- }
- }//end of the draw
- void rePeated(){
- rectMode(CENTER);
- // first rectamgle
- fill(0);
- noStroke();
- rect(0,0,130,130);
- //second rectangle
- stroke(225);
- strokeWeight(2);
- rect(0,0,100,100);
- // third rectangle
- noStroke();
- pushMatrix();
- rotate(radians(45));
- rect(0,0,130,130);
- // fouryh rectangle
- stroke(#ffffff);
- strokeWeight(2);
- rect(0,0,90,90);
- popMatrix();
- //fithrectangle
- fill(0);
- noStroke();
- rect(0,0, 80,80);
- }
Add Comment
Please, Sign In to add comment