Page 1 of 1

Colour / hex equivalent chart

Posted: Fri Mar 05, 2021 10:40 am
by danboid
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.

Re: Colour / hex equivalent chart

Posted: Fri Mar 05, 2021 4:58 pm
by D3thAdd3r
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,

Re: Colour / hex equivalent chart

Posted: Thu Apr 01, 2021 9:06 am
by Artcfox
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.)

Uzebox_Color_Index_Chart.png
Uzebox_Color_Index_Chart.png (34.92 KiB) Viewed 10135 times

Re: Colour / hex equivalent chart

Posted: Sat Apr 03, 2021 12:37 am
by D3thAdd3r
That's very useful and should probably go on the wiki somewhere.

Re: Colour / hex equivalent chart

Posted: Tue Apr 20, 2021 10:16 pm
by danboid
Thanks for that Artcfox!