diff --git a/js/_createColorPalette.js b/js/_createColorPalette.js index f490a99..a8cf769 100644 --- a/js/_createColorPalette.js +++ b/js/_createColorPalette.js @@ -86,6 +86,6 @@ function createPaletteFromLayers() { } } - //create palette form colors array - //createColorPalette(colorPaletteArray, false); + //create palette from colors array + createColorPalette(colorPaletteArray, true); } \ No newline at end of file diff --git a/js/_loadImage.js b/js/_loadImage.js index 5132c3c..dbf1d12 100644 --- a/js/_loadImage.js +++ b/js/_loadImage.js @@ -35,6 +35,7 @@ document.getElementById('open-image-browse-holder').addEventListener('change', f //draw the image onto the canvas currentLayer.context.drawImage(img, 0, 0); + console.log("qui"); createPaletteFromLayers(); //track google event diff --git a/js/_newPixel.js b/js/_newPixel.js index 9ff4f7e..6b88c14 100644 --- a/js/_newPixel.js +++ b/js/_newPixel.js @@ -154,7 +154,7 @@ function newPixel (width, height, editorMode, fileContent = null) { // This is not the first Pixel anymore firstPixel = false; - // Now, if I opened a file + // Now, if I opened an LPE file if (fileContent != null) { // I add every layer the file had in it for (let i=0; i