Was messing with a Curses build of Zangband in an xterm256 Cygwin terminal and noticed that when I compiled it with the colors from a color scheme I'd cooked up in Angband's color editor popped into its src/variable.c color table
the colors came out much richer than in Angband. Even if I similarly compile them into Angband's src/z-color.c color table, whereas they come out in these nice dark browns in Zangband
![](https://smbhax.com/stuff/misc/ang_zang_clrs.png)
they come out in much less saturated browns in Angband
![](https://smbhax.com/stuff/misc/ang_clrs.png)
And messing with them in Angband's color editor, I just plain can't get it to give me a nice rich brown color: it jumps between rather icky dark green-brown, or weirdly dark yellow brown, and so forth.
There seems to be some kind of severe color rounding-off going on in Angband. I wonder if this is absolutely necessary? Ie, would it be possible to have, in Angband, what appears to be possible in Zangband, namely access to full 24-bit color values, without them being approximated to some much more limited palette instead?
Code:
{0x00, 0x00, 0x00, 0x00}, /* TERM_DARK */ {0x00, 0xDD, 0xDC, 0xAD}, /* TERM_WHITE */ {0x00, 0x84, 0x57, 0x2C}, /* TERM_SLATE */ {0x00, 0xFF, 0x80, 0x00}, /* TERM_ORANGE */ {0x00, 0xC0, 0x00, 0x00}, /* TERM_RED */ {0x00, 0x00, 0x80, 0x40}, /* TERM_GREEN */ {0x00, 0x00, 0x40, 0xFF}, /* TERM_BLUE */ {0x00, 0x80, 0x40, 0x00}, /* TERM_UMBER */ {0x00, 0x5E, 0x3D, 0x06}, /* TERM_L_DARK */ {0x00, 0xE7, 0xC3, 0x43}, /* TERM_L_WHITE */ {0x00, 0xFF, 0x00, 0xFF}, /* TERM_VIOLET */ {0x00, 0xFF, 0xFF, 0x00}, /* TERM_YELLOW */ {0x00, 0xFF, 0x40, 0x40}, /* TERM_L_RED */ {0x00, 0x00, 0xFF, 0x00}, /* TERM_L_GREEN */ {0x00, 0x00, 0xD6, 0xDF}, /* TERM_L_BLUE */ {0x00, 0xC0, 0x80, 0x40} /* TERM_L_UMBER */
![](https://smbhax.com/stuff/misc/ang_zang_clrs.png)
they come out in much less saturated browns in Angband
![](https://smbhax.com/stuff/misc/ang_clrs.png)
And messing with them in Angband's color editor, I just plain can't get it to give me a nice rich brown color: it jumps between rather icky dark green-brown, or weirdly dark yellow brown, and so forth.
There seems to be some kind of severe color rounding-off going on in Angband. I wonder if this is absolutely necessary? Ie, would it be possible to have, in Angband, what appears to be possible in Zangband, namely access to full 24-bit color values, without them being approximated to some much more limited palette instead?
Comment