Merge pull request #51 from imsyf/master

Set color picker default value to black
This commit is contained in:
Brad Traversy 2021-03-08 07:44:41 -05:00 committed by GitHub
commit 773d1f3554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,8 @@ const ctx = canvas.getContext('2d');
let size = 10
let isPressed = false
let color = 'black'
colorEl.value = 'black'
let color = colorEl.value
let x
let y