I have a function that draw a point with one random line starting from the same point
// add point with line
void add(float x, float y) {
int o = random(14 * 2), u = random(Math.PI * 2);
stroke(255, 255, 255, 90);
point(x,y);
stroke(140, 200, 255, 10);
line(x, y, x + o * Math.cos(u), y + o * Math.sin(u));
}
This function can be called infinite times...
add(10.20, 300.10);
add(100.00, 10.34);
add(95.50, 31.21);
add(320.10, 60.97);
add(10.20, 300.10);
...
I want to remove - by fading out if it's possible - each point/line older than 2 minutes but I can't' find the correct way... I'm absolutely new to Processing language