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

by Miranda Phillips
  • Show Sketch
/** @peep sketchcode */
 
size(100, 100);
background(180);
//cross
line(10, 10, 90, 90);
line(10, 90, 90, 10);
//diamond
line(50, 10, 90, 50);
line(90, 50, 50, 90);
line(50, 90, 10, 50);
line(10, 50, 50, 10);
  • Show Sketch
/** @peep sketchcode */
 
size(100, 100);
background(180);
fill(255);
triangle(50, 40, 40, 20, 60, 20);
triangle(50, 60, 40, 80, 60, 80);
triangle(40, 50, 20, 40, 20, 60);
triangle(60, 50, 80, 40, 80, 60);
  • Show Sketch
/** @peep sketchcode */
 
size(100, 100);
background(180);
fill(255);
//diamond
quad(50, 40, 60, 50, 50, 60, 40, 50);
//quadritlaterals
quad(50, 37, 90, 10, 50, 20, 10, 10);
quad(50, 63, 90, 90, 50, 80, 10, 90);
quad(63, 50, 90, 10, 80, 50, 90, 90);
quad(37, 50, 10, 90, 20, 50, 10, 10);

Comments

Nobody has said anything yet.