I've a system that outputs (x,y) coordinates over time. I want to draw lines using those coordinates. But every time I draw a new line, the older lines disappear. I understand, processing draw function is called every time for a new frame. So this happens.
Is there any way to solve this? Other than redrawing the whole path always from the beginning?