/* Valentines Lines */ int i; // iteration variable void setup( ){ size(500, 500); // set canvas background(0); // pick black for the app frameRate(5); // more fun to go slow strokeWeight(2); // wide lines better } void draw( ) { if (random(0,1) < 0.5) { // Pick a color stroke(255,255,255); // Which is white } else { stroke(255, 0,0); // Which is red } for (i = 0; i < 10; i++) { // Do a batch of 10 line(random(1,499), random(1, 499), random(1,499), random(1, 499)); } }