Fixed colour picker bug

When the user changed a selected colour, the stroke colour became one of the two checkerboard colours.
This commit is contained in:
unsettledgames
2020-06-16 16:04:36 +02:00
parent 970fe56674
commit 8743bd8549
4 changed files with 17 additions and 10 deletions

View File

@ -17,10 +17,10 @@ function newPixel (width, height, palette) {
canvasSize = currentLayer.canvasSize;
// Adding the first layer and the checkerboard to the list of layers
layers.push(checkerBoard);
layers.push(currentLayer);
layers.push(VFXLayer);
layers.push(TMPLayer);
layers.push(currentLayer);
layers.push(checkerBoard);
//remove current palette
colors = document.getElementsByClassName('color-button');