Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- size(1200,700);
- background(0);
- }
- void draw() {
- translate(100,300);
- fill(#DB3C3C);
- stroke(#DB3C3C) ;
- ikinciParca();
- translate(369,0);
- ikinciParca();
- }
- void ilkParca() {
- for(int i=0; i<6; i++) {
- rect(i*54,i*54,50,50);
- }
- }
- void ikinciParca() {
- for(int i=0; i<6; i++){
- pushMatrix();
- translate(i*54,-i*54);
- ilkParca();
- popMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement