星期六, 十月 24, 2009

coloured dots spiral

int c = 0,r = 30;
float s = 1, x,y;
void setup(){
  background(0xFFFFFF);
  size(400,400);
  smooth();
  colorMode(HSB);
  noStroke();
}

void draw(){
  translate(width * .5, height * .5);
  x = cos(radians(c)) * r;
  y = sin(radians(c)) * r;
  if(x < 500 && y < 500){
    s = 1 + random(30);
    fill(random(255),255,255,70);
    ellipse(x,y,s,s);
    c+=10;
    r++;
  }
}

info info

submitted by: Orgicus
views: 473
pretty similar to coloured dots

Tags: colour, dots

comments comment

loading loading...

 

Add a comment: