Clinton Montague

Developer, learner of things, functional programming enthusiast, hacker, and all round inquisitor.

Generative art experiment 3: Lord of the rings

January 30, 2012

void setup () 
{
  smooth();
  size(500,900);
  render ();
}

void render () 
{
  fill (0, 0);
  background(255, 100, 0);
  for (int i = 0; i < random(50, 200); i++)
  {
    drawRings ();
  }
}

void drawRings ()
{

  float radius = random (20, width/1.4);
  float x = random (0, width);
  float y = random (0, height);
  for (int i = 0; i < radius; i++)
  {
    float redness = random (50, 200);
    stroke (redness, 0, 0, i);
    ellipse (x, y, i, i);
  }
}

void mouseClicked () 
{
  render();
}