hey, im trying to do some growing lines that go in random directions and i began trying to do one .
so i thought i would programme a float that would be a noise and then increment it with 0.01 and put something like:
float x2 = initial x value;
float y2 = initial y value;
float x = noise();
float y = noise();
x += incrementFloat;
y += incrementFloat;
line(x2,y2,x,y);
and this didn't work.... can someone tell me why?
but here is my code a little more complete....
line(
Code:
float xplus = 0.01;
float yplus = 0.01;
float xx = random(0, 0.05);
float yy = random(0, 10);
void setup(){
size(595,842);
smooth();
frameRate(60);
}
void draw(){
float x = noise(xx)*width;
float y = noise(yy)*height;
float r = random(100,200);
float g = random(100,200);
float b = random(100,200);
float a = random(100,200);
xx += xplus;
yy += yplus;
float clr1 = random(255);
float clr2 = random(height);
float siZe = random(40);
float xp = noise(20,40);
fill(0,0,clr1,clr1);
line(x,y,y,x);
}