Tuesday, February 23, 2010

Shards

int maxDepth = 35;
int currentDepth = 0;
int justStart = 1;
float tangle;

int stage = 2;
float angle = 0;
float tx, ty;

void setup()
{
  background(255);
  size(800,400);
}

  void drawShard() {
    float depth = random(0,width);
    float start = 0;
   int limit = int(random(0,width/8));
  stroke(random(0,255),random(0,255),random(0,255),20);
    for(int i = 0; i < limit; i++)
  {
    start = width/1.5 + 15.0*sin(i/100.0);
    line(i,start,i,start-depth);
  }

  }
  
  
void draw()
{
  translate(random(0,width),random(0,height));
  rotate(random(-1,1));
drawShard();
 
}

  void mousePressed()
{
    background(255);
}

info info

submitted by: DARYL_Gamma
views: 641
overlapping random slices of sinuses

treeThis sketch has a parent
Tags: slices

comments comment

loading loading...

 

Add a comment: