//Devin Fairchild, 9/02/09, program generates random lines with //ellipses attached to the ends int x1 = 100; int y1 = 100; int b; int t; void setup() { size(800,800); smooth(); //Sketch attributes colorMode(HSB,140,50,90); strokeWeight(10); } //Sketch objects void draw() { b = (int) (random(35,100)); t = (int) (random(50,150)); stroke(80,80,b,t); x1 = (int)(random(width)); y1 = (int) (random(height)); ellipse(x1,y1, 15, 15); line(x1,y1,100,100); }