HomeForumsWhat's newResources 
 
 
Saturn Color Palette
aeroflot - Dec 27, 2014
 aeroflot Dec 27, 2014
I'm hand making some sprites using the hex codes, but I'm having a hard time figuring out how the colors are indexed. I know that 0x8000 is black and 0xFFFF is white, and looking through some sample games I found codes for several yellows and browns, but I'm wondering if there's just a reference somewhere that can speed this up. #FFFFF is white normally in HTML hex code, so I thought there might be a correlation between the HTML hex codes and the Saturn, but it seems like there's not. At the moment I just want to hand code this and not use a sprite editor program.

 vbt Dec 27, 2014

aeroflot said:
I'm hand making some sprites using the hex codes, but I'm having a hard time figuring out how the colors are indexed. I know that 0x8000 is black and 0xFFFF is white, and looking through some sample games I found codes for several yellows and browns, but I'm wondering if there's just a reference somewhere that can speed this up. #FFFFF is white normally in HTML hex code, so I thought there might be a correlation between the HTML hex codes and the Saturn, but it seems like there's not. At the moment I just want to hand code this and not use a sprite editor program.


it depends on color mode you use but the best way to convert color to "saturn" palette is to use these macros :

#define RGB( r, g, b ) (0x8000U|((b) << 10)|((g) << 5 )|(r))
#define RGB16_COLOR(r,g,b) ()(((b)<<10) + ((g)<<5) + (r) + 0x8000)
/* Make 16 bit RGB Color */
#define RGB32_COLOR(r,g,b) (Rgb32)(((b)<<16) + ((g)<<8) + (r) + 0x80000000)

 aeroflot Dec 27, 2014
Thanks I'm going to check that out!

 aeroflot Jan 1, 2015
Okay, so got the color situation sorted out!