Week 2 (Tu­t­o­r­i­a­l 2+3)

by Albert Ma
  • Show Sketch
/**@peep sketchcode */
 
size (200, 200); // set the size of the window/canvas
background (0, 245, 255); //make this cyan
println("Hello World!"); 
strokeWeight (4);
 
 
//line repitition
int x;
x = 20;
stroke (255, 62, 150);
line (0,0, 200, 200);
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
line (0, x, 200, 200);
x+=20 ;
 
 
//line repitition
 
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
line (0, x, 200, 0);
x+=40;
 
 
// circles
fill (0, 245, 255);
ellipse (40, 46, 55, 55);
ellipse (60, 46, 55, 55);
ellipse (80, 46, 55, 55);
ellipse (100, 46, 55, 55);
ellipse (120, 46, 55, 55);
ellipse (140, 46, 55, 55);
ellipse (160, 46, 55, 55);

Comments

Nobody has said anything yet.