/* Matt Martell IAT 800 - Dr. Christopher Shaw Due Oct. 6, 2008 A2-05 - Write a function for drawing triangles and visually demonstrate its flexibility. */ void setup() { size(500,500); smooth(); stroke(230,230,250); } int x = int (random(40,400)); int a = int (random(x)); void draw() { background (108,166,205,50); fill(127,255,0); triangle (mouseY,mouseX,mouseY,mouseY, a,mouseX); }