Week 2 Tut­o­r­i­a­l

by Marjory Jiang
  • Show Sketch
/** @peep sketchcode */
size(300, 300);
background(205);
 
stroke(255);
strokeWeight(2);
fill(204, 255, 229);
rect(20, 20, 260, 260);
//square
 
stroke(200);
line(60, 60, 240, 240);
//line from top left to bottom right 
 
stroke(200);
line(240, 60, 60, 240);
//line from top right to bottom left
 
stroke(255);
strokeWeight(2);
fill(255, 204, 229);
ellipse(150, 150, 30, 30);
//centre circle
 
stroke(255);
strokeWeight(2);
fill(255, 204, 229);
ellipse(50, 50, 30, 30);
//top left circle
 
stroke(255);
strokeWeight(2);
fill(255, 204, 229);
ellipse(250, 250, 30, 30);
//bottom right circle
 
 
stroke(255);
strokeWeight(2);
fill(255, 204, 229);
ellipse(250, 50, 30, 30);
//top right circle
 
stroke(255);
strokeWeight(2);
fill(255, 204, 229);
ellipse(50, 250, 30, 30);
//bottom left circle
 
fill(0, 102, 102);
stroke(255, 192, 203);
strokeWeight(3);
triangle(120, 60, 180, 60, 150, 120);
triangle(180, 150, 240, 120, 240, 180);
triangle(150, 180, 180, 240, 120, 240);
triangle(60, 120, 120, 150, 60, 180);
strokeWeight (1);
//four outer triangles
 
fill(173, 216, 230);
stroke(255);
triangle(135, 70, 165, 70, 150, 100);
triangle(200, 150, 230, 135, 230, 165);
triangle(150, 200, 165, 230, 135, 230);
triangle(70, 135, 105, 150, 70, 165);
//four inner triangles

Comments

Nobody has said anything yet.