diff --git a/js/_clickedColor.js b/js/_clickedColor.js index 57566ce..f09ef07 100644 --- a/js/_clickedColor.js +++ b/js/_clickedColor.js @@ -8,9 +8,11 @@ function clickedColor (e){ if (selectedColor) selectedColor.classList.remove('selected'); //set current color - currentLayer.context.fillStyle = this.style.backgroundColor; - currentGlobalColor = this.style.backgroundColor; + for (let i=1; i