I'm trying to make a simple animation of a ball that starts from the 1st corner and goes to another corner of the panel. I wrote a program for this.
When I run the program, the symbol is oval or leaves a mark. I want to say that it leaves a βcolor markβ when the program starts. In my timer program, an event is fired every 100 milliseconds.
The following is the logic responsible for running the code:
void function() {
Screenshot:

source share