Hello,
I wrote a program that graphs voltages in real time coming from an accelerometer which then are looped every time they go all the way across the screen. The problem is that when the loop happens, the lines that represent the voltages remain where they are, that is, they start over again but overlapping the voltages in previous loops. In the end the screen gets pretty busy with lines on top of other lines which makes everything really messy.
I could copy and past my code but there are things that don't belong to Processing, at this point I'm only working from Java but using the Processing package, so the code has unfamiliar things to the Processing syntax. A guy from this forum helped with a previous problem I had in this program, he helped me out with this, which is the basic principle:
[code]
How can I clear the screen so that when the lines reach the width of the screen they dissapear and then appear right at the beginning?
Thanks in advance.
1