samedi 2 janvier 2021

draw a filled circle with a radius of 3 pixels at the mouse position whenever you move your mouse over the canvas

enter image description here the mouse is moving around and dots come out of it...

Using jQuery and the mousemove event, draw a filled circle with a radius of 3 pixels at the mouse position whenever you move your mouse over the canvas. Because this event is triggered by every tiny movement of the mouse, these circles will join into a line as you move the mouse over the canvas. Hint: Refer to previous lecture for a reminder of how to respond to mousemove events.




Aucun commentaire:

Enregistrer un commentaire