I am currently making a Physics simulator, starting it off with vertical throwing. The simulator graphs the trail of the thrown object and then the user can move their cursor over the graph to see the speeds and coordinates of that specific point.
I've been trying to find a way to have a dot or a small circle of some sort (not a single pixel) on the graph to mark the point on the graph where the cursor is located. So for example if my cursor is at X=20, on the graph at (20, Y coordinate) I have a dot. The dot needs to move with the cursor. A good example is Google's function "grapher" (search for Y=2x+1 or any other function...).
The problems is that when moving the dot, the graph is erased as well, so I tried using a second transparent panel over the 1st one but that didn't work... Any ideas?
Thanks a lot!