Saturday, September 11, 2010

weird wheel v2

void setup(){
  size(200, 200);
  background(20);
  smooth();
  noStroke();
}

void draw(){
  background(230);
  int diameter = 150;
  float[] angs = {
    30+sin(frameCount/10.0), 40+sin(frameCount/24.0), 50+sin(frameCount/16.0), 35+2*sin(frameCount/5.0), 20+sin(frameCount/21.0), 82+sin(frameCount/27.0), 70+sin(frameCount/31.0), 67+sin(frameCount/44.0)
    
    };
  float lastAng = 0;

  for (int i = 0; i < angs.length; i++){
    fill((frameCount+i*30)%255, (frameCount/10.0+i*30)%255, (frameCount/8.0+i*30)%255);
    arc(width/2, height/2, diameter+i*2*sin(frameCount/10.0), diameter+i*2*sin(frameCount/10.0), frameCount/100.0+lastAng, lastAng+radians(angs[i])+frameCount/100.0);
    lastAng += radians(angs[i]);
  }
}

info info

submitted by: DARYL_Gamma
views: 54
it's just weird

treeThis sketch has a parent
Tags: weird, wheel

comments comment

loading loading...

 

Add a comment: