Forum: Object-Pascal / Delphi-Language
Delphi
by Whookie,
3. Sep 2018
Hi,
its hard to tell, if this could work on android...
You could reduce the number of pixels (path segements) by just adding another position if it differes from the last one by a reasonable amount.
But thinking about this I must admit that I'm not sure if this will ever work. Adding all the mouse movement will end up in a drawing (like using Paint and moving the mouse around).
What...
Forum: Object-Pascal / Delphi-Language
Delphi
by Whookie,
31. Aug 2018
Have a look at my code, I store the positions of all 9 dots in my fDots - array (.Pos is the center point, .Bounds is the bounding rectangle). This is done once in the CalcDotPositions method.
In the Paintbox MouseDown event I use the MouseNearDots()-function to see if the current mouse position (X,Y) is near of one of the nine dots. Drawing does not start from anywhere, you need to be near of...
Forum: Object-Pascal / Delphi-Language
Delphi
by Whookie,
31. Aug 2018
My code is drawing 9 dots (as the paintbox is of fixed size, you might need to resize the form...):