Skip to main content
edited title
Link

Is it possible to How do you create dots in a shape of a letter and make them interact-able for a user to connect them?

Source Link

Is it possible to create dots in a shape of a letter and make them interact-able for a user to connect them?

I am making a game where the user is given a letter on screen such as the below image enter image description here

The user then uses the mouse to draw from one point to another until the shape is drawn.

I wanted to know what is the best way for the program to create these points so that they appear on screen for the user to interact with them?

I have a canvas and the mouse is able to draw on the screen the problem is I don't know how to make the points interact-able with the mouse, so that when the mouse draws on or over the dots that it connects them together to form the letter.