Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- size(1000,600);
- rectMode(CENTER);
- }
- void draw() {
- pushMatrix();
- translate( 200, 200 );
- crearPatron();
- translate( 300, 0 );
- crearPatron();
- translate( 300, 0 );
- crearPatron();
- popMatrix();
- }
- void crearPatron() {
- pushMatrix();
- rect(0,0,100,100);
- translate( 0, -100 );
- rect(0,0,40,40);
- translate( 100, 100 );
- rect(0,0,40,40);
- translate( -100, 100 );
- rect(0,0,40,40);
- translate( -100, -100 );
- rect(0,0,40,40);
- popMatrix();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement