Colour / hex equivalent chart

Topics on software tools like TileStudio, comments on documentation and tutorials (or the lack of) should go here.
Post Reply
User avatar
danboid
Posts: 162
Joined: Sun Jun 14, 2020 12:14 am

Colour / hex equivalent chart

Post by danboid » Fri Mar 05, 2021 10:40 am

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.

User avatar
D3thAdd3r
Posts: 2472
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Colour / hex equivalent chart

Post by D3thAdd3r » Fri Mar 05, 2021 4:58 pm

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,
Attachments
nes2uzebox_pallet.png
nes2uzebox_pallet.png (5.74 KiB) Viewed 1041 times

User avatar
Artcfox
Posts: 1060
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Colour / hex equivalent chart

Post by Artcfox » Thu Apr 01, 2021 9:06 am

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 851 times

User avatar
D3thAdd3r
Posts: 2472
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Colour / hex equivalent chart

Post by D3thAdd3r » Sat Apr 03, 2021 12:37 am

That's very useful and should probably go on the wiki somewhere.

User avatar
danboid
Posts: 162
Joined: Sun Jun 14, 2020 12:14 am

Re: Colour / hex equivalent chart

Post by danboid » Tue Apr 20, 2021 10:16 pm

Thanks for that Artcfox!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests