Created
November 19, 2018 20:41
-
-
Save strayblues/dec32cd592a9e158302a7ce53620733f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() { | |
//...code... | |
canvas.onpointermove = handleMouseMove; | |
canvas.onpointerdown = handleMouseDown; | |
canvas.onpointerup = stopDrawing; | |
canvas.onpointerout = stopDrawing; | |
document.querySelector(".clear").onclick = clearCanvas; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment