Tuesday, April 03, 2012

City Lights

void setup() {
  size(500,500);
    background(random(1,500),random(1,500),random(1,500)); 
  //Simple random background
}


void draw() {
  noFill();
  stroke(0,0,0);
  strokeWeight(2);
  rect(random(400,0),random(700,0),random(700,0),random(700,0));
  }

info info

submitted by: reubenwilliamson
views: 3623
A nice look at a city turning off its lights for the night. I have noticed that the supposadly random generator I have used favours the bottom right corner over the top left. Why is this? Any answers will be much appreciated. Enjoy SM ;)

Tags: by, subtle, monster

comments comment

loading loading...

 

Add a comment: