fixed bug where using a custom palette sets initial brush to black

This commit is contained in:
Sam Keddy 2020-09-09 04:29:35 +00:00
parent 43f5fa8d5c
commit 302228b8cd

View File

@ -35,6 +35,9 @@ function createColorPalette(selectedPalette, fillBackground, deletePreviousPalet
}
}
//prepend # if not present
if (!darkestColor.includes('#')) darkestColor = '#' + darkestColor;
//set as current color
currentLayer.context.fillStyle = darkestColor;
}