Tut­o­r­i­a­l 5

by Michael McCammon
  • Show Sketch
/** @peep sketchcode */
size(500, 500);
background(243);
fill(143, 33, 200, 100);
beginShape();
vertex(40, 40); 
for (int y = 40; y <= 480; y += 20) {
  if (y % 40 == 0) {
    vertex(480, y);
  } else {
    vertex(40, y); 
  }
} 
vertex(180, 180); 
endShape(CLOSE);

Comments

Nobody has said anything yet.