Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 1x 1x | import { Background, ColorCorrectionSetting } from "shared/lib/resources/types";
import { assetFilename } from "shared/lib/helpers/assets";
import { readFileToPalettes } from "lib/tiles/readFileToPalettes";
import { HexPalette } from "shared/lib/tiles/autoColor";
import { IndexedImage } from "shared/lib/tiles/indexedImage";
export const getMonoTilesImage = async (
img: Background,
uiPalette: HexPalette | undefined,
colorCorrection: ColorCorrectionSetting,
projectPath: string,
): Promise<IndexedImage> => {
const filename = assetFilename(projectPath, "backgrounds", img);
const paletteData = await readFileToPalettes(
filename,
colorCorrection,
uiPalette,
);
return paletteData.indexedImage;
};
|