Featured image of post Something Easy To Draw On A Canvas : To draw on a canvas, you need to reference the context of the canvas.

Something Easy To Draw On A Canvas : To draw on a canvas, you need to reference the context of the canvas.

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.