Independent stroke color & weight every new line?
in
Programming Questions
•
5 months ago
Hello all,
I want to create some lines and each of them, want to have a unique color and stroke which are changing with noise..
how can i achieve that?
For e.g:
void draw () {
float v = 0;
while (v < height) {
stroke (255 * noise(my_color1), 255, 255);
strokeWeight ( 10 * noise(my_size));
line(0, v , width, v);
v = v + 80;
my_color1 = my_color1 + 0.00001;
}
}
my_size = my_size + 0.005;
}
1