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);
}
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
submitted by: DARYL_Gammaviews: 641
overlapping random slices of sinuses
This sketch has a parent
comments
loading...
Add a comment: