Featured image of post Something Easy To Draw On A Canvas - Canvas graphics can be drawn onto a <canvas> element.

Something Easy To Draw On A Canvas - Canvas graphics can be drawn onto a <canvas> element.

To draw points on a canvas when the user clicks on it, we need to retrieve the click event and get the coordinates of that click.to get the now, our drawcoordinates method will draw the point according to the location of the click in the canvas.