void setup(){ size (400,400); background(200, 0, 255); frameRate(4); strokeWeight(1); stroke(250); } void drawTriangle(float x, float y, float x2, float y2,float x3, float y3) { beginShape(); vertex (x,y); vertex(x2,y2); vertex(x3, y3); endShape(); } void draw(){ drawTriangle(random(400,0),random(400,0),random(0,400),random(0,400),random(0,0),random(0,0)); fill(random(0,255),random(0,255),random(0,255),random(50,100)); }