Within the gfx dir of the UB repo we have colour table images and a colour palette for GIMP. It would be very handy to also include an image that shows every colour alongside their matching hex value because currently to work out colours I have to create an image in gimp using the UB palette, export it then run gconvert to find out the hex value of the colour I want to use. Its a bit tedious.
Has anyone already created such a chart? I couldn't find it on the wiki nor in the repo.
Colour / hex equivalent chart
Re: Colour / hex equivalent chart
I don't think it exists, but it could be useful. Closest thing I ever used is this to help conversion between NES rom graphics andUzebox:
0x52,//NES COLOR 0x00
0x40,
0x80,
0x81,
0x42,
0x02,
0x03,
0x04,//...2 is more accurate
0x0A,
0x08,
0x10,
0x11,
0x48,
0x0,
0x0,
0x0,
0xA4,//NES COLOR 0x10
0x90,
0xC8,
0xC2,
0x84,
0x45,
0x0D,
0x0C,
0x13,
0x19,
0x18,
0x1A,
0x58,
0x00,
0x00,
0x00,
0xFF,//NES COLORS 0x20
0xE2,
0xDB,
0xDD,
0xD7,
0x9F,
0x5F,
0x27,
0x2D,
0x2B,
0x31,
0x71,
0xE8,
0x49,//no close option
0x00,
0x00,
0xFF,//NES COLOR 0x30 //0xBF is second closest
0xF4,
0xED,
0xEE,
0xEF,
0xE7,//0xEF is closer
0xAF,
0xB7,
0x77,
0xB6,
0xB5,
0xB4,
0xF3,//0xF4 is closer
0xE5,
0x00,
0x00,
0x52,//NES COLOR 0x00
0x40,
0x80,
0x81,
0x42,
0x02,
0x03,
0x04,//...2 is more accurate
0x0A,
0x08,
0x10,
0x11,
0x48,
0x0,
0x0,
0x0,
0xA4,//NES COLOR 0x10
0x90,
0xC8,
0xC2,
0x84,
0x45,
0x0D,
0x0C,
0x13,
0x19,
0x18,
0x1A,
0x58,
0x00,
0x00,
0x00,
0xFF,//NES COLORS 0x20
0xE2,
0xDB,
0xDD,
0xD7,
0x9F,
0x5F,
0x27,
0x2D,
0x2B,
0x31,
0x71,
0xE8,
0x49,//no close option
0x00,
0x00,
0xFF,//NES COLOR 0x30 //0xBF is second closest
0xF4,
0xED,
0xEE,
0xEF,
0xE7,//0xEF is closer
0xAF,
0xB7,
0x77,
0xB6,
0xB5,
0xB4,
0xF3,//0xF4 is closer
0xE5,
0x00,
0x00,
- Attachments
-
- nes2uzebox_pallet.png (5.74 KiB) Viewed 10322 times
Re: Colour / hex equivalent chart
I usually just count the squares down and then across when looking at the palette in GIMP to get the equivalent hex index for a color, but that can be tedious if you need to do that frequently.
Here is a screenshot of the palette in GIMP with color-coded labels and a corresponding legend so you know which value goes first.
(I highlighted the pure grays, because I always have trouble finding them.)
Here is a screenshot of the palette in GIMP with color-coded labels and a corresponding legend so you know which value goes first.
(I highlighted the pure grays, because I always have trouble finding them.)
Re: Colour / hex equivalent chart
That's very useful and should probably go on the wiki somewhere.
Re: Colour / hex equivalent chart
Thanks for that Artcfox!