Tut­o­r­i­a­l week 3

by Brittany Klaassens
  • Show Sketch
/** @peep sketchcode */
size(200, 200); 
beginShape(); 
vertex(20, 20); 
for (int x = 20; x <= 180; x += 10) {
  if (x % 20 == 0) {
    vertex(x, x);
  } else {
    vertex(x, 100); 
  }
} 
vertex(100, 100); 
endShape(CLOSE);

Comments

Nobody has said anything yet.