Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- size (800,800);
- }
- void draw(){
- translate(100,100);
- for(int x = 0; x< 5; x++){
- motif();
- translate(140,0);
- }
- }//end draw//
- void motif(){
- rectMode(CENTER);
- //first rectangle//
- fill(0);
- noStroke();
- rect(0,0,100,100);
- //2nd//
- stroke(255);
- strokeWeight(2);
- rect(0,0,85,85);
- //3ed//
- noStroke();
- pushMatrix();
- rotate(radians(45));
- rect(0,0,100,100);
- //4th//
- stroke(255);
- strokeWeight(2);
- rect(0,0,80,80);
- popMatrix();
- //5th//
- fill(0);
- noStroke();
- rect(0,0,70,70);
- }
Add Comment
Please, Sign In to add comment