mousedown
mousemove
mouseup
yourCanvasVariable.addEventListener(`mousedown`, startDrawing) yourCanvasVariable.addEventListener(`mousemove`, draw) yourCanvasVariable.addEventListener(`mouseup`, stopDrawing)