aswartzell.net Postcard #1: Diagonal

int margin = 0;

void setup(){
  size(455,455);
  background(255);
  smooth();
}

void draw() {
  if(!mousePressed){
    stroke(random(0, 255));
    strokeWeight(.25);
    line(random(margin, width-margin), margin, margin, random(margin, height-margin));
    line(random(margin, width-margin), height-margin, width-margin, random(margin, height-margin));
    line(random(margin, width-margin), height-margin, margin, random(margin, height-margin));
    line(random(margin, width-margin), margin, width-margin, random(margin, height-margin));
  }
}

This is the first (and only) postcard I’ve sent out so far in a little postcard exchange that my friend Mei-Ling set up back at the beginning of the year. My intention was to write a script each month to make a new post card, but work and life interfered as usual and I’m only now getting back on track. Documenting these online as I go may add a little more incentive to the project for me, so that’s the plan for now.