diff --git a/drawing-app/script.js b/drawing-app/script.js index cb66181..f9f4389 100644 --- a/drawing-app/script.js +++ b/drawing-app/script.js @@ -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