Make bg always pixelated

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-27 18:50:00 -03:00
parent 7e6df6819f
commit b23a9183ea
2 changed files with 8 additions and 0 deletions

View file

@ -63,3 +63,8 @@
image-rendering: pixelated;
image-rendering: crisp-edges;
}
canvas.pixelated {
image-rendering: pixelated;
image-rendering: crisp-edges;
}

View file

@ -22,6 +22,9 @@ const bgLayer = imageCollection.registerLayer("bg", {
name: "Background",
category: "background",
});
bgLayer.canvas.classList.add("pixelated");
const imgLayer = imageCollection.registerLayer("image", {
name: "Image",
category: "image",