User-1838255255 posted
Hi M-hossein,
According to your description, i am not clear your application type and how to achieve it. If your application is web application, i think you could achieve it through the following steps:
Maybe the dart is a point actually, so i think you could use JS to get the position of the dart in the canvas(div), if canvas radius is 100, then center area is from center point to 10's area, so if this point to the canvas border is more than
40, you will get 25 points.
About how to get the position of the point, you could check the following tutorials:
https://stackoverflow.com/questions/4840736/easier-way-to-create-circle-div-than-using-an-image
https://api.jquery.com/position/
https://www.w3schools.com/jquery/css_position.asp
Best Regards,
Eric Du