Skip to content

Commit

Permalink
Merge pull request bradtraversy#51 from imsyf/master
Browse files Browse the repository at this point in the history
Set color picker default value to black
  • Loading branch information
bradtraversy authored Mar 8, 2021
2 parents 2c455d2 + 90d76fb commit 773d1f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drawing-app/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 773d1f3

Please sign in to comment.