color mapping changes

This commit is contained in:
2025-07-26 16:45:08 +02:00
parent e9e02a2473
commit 6a90d6306d
4 changed files with 70 additions and 12 deletions

View File

@@ -894,10 +894,14 @@ const char *nn_depthName(int depth);
double nn_colorDistance(int colorA, int colorB);
int nn_mapColor(int color, int *palette, int paletteSize);
int nn_mapDepth(int color, int depth);
int nn_mapDepth(int color, int depth, nn_bool_t legacy);
void nn_getStd4BitPalette(int color[16]);
void nn_getStd8BitPalette(int color[256]);
// Std4bit uses actual MC dye colors, except for white and black
// Legacy uses OC's versions that were brightened
void nn_getLegacy4BitPalette(int color[16]);
void nn_setPixel(nn_screen *screen, int x, int y, nn_scrchr_t pixel);
nn_scrchr_t nn_getPixel(nn_screen *screen, int x, int y);