Original Post
Hello. I wrote an application that simulates a double pendulum, and I want to draw it's path on the screen. The problem is: If I don't clean the buffer, the pendulum will "multiply", appearing all over the screen.
So, basically, I need to clean the pendulum but not the path.
I thought of storing all the points of the path and draw it at every clean, but I guess it's not a nice way to do it.
So, I thought of drawing the pendulum in a "layer" and the path in another one. But there is a way to do it? If not, what do you suggest me to do?
Thanks
cleaning*
So, basically, I need to clean the pendulum but not the path.
I thought of storing all the points of the path and draw it at every clean, but I guess it's not a nice way to do it.
So, I thought of drawing the pendulum in a "layer" and the path in another one. But there is a way to do it? If not, what do you suggest me to do?
Thanks
cleaning*