> But when the actual RGB values are accessible somewhere in the game or in the > hardware's code, how come that different emulators use different colors? For "Street > Fighter II", MAME has other colors as WinKawaks. If the RGB values are fixed, why is > this the case?
It's not exactly rgb, there is some interpretation. Even if it was solely rgb, the colours might not be linear which also opens them up for interpretation.
src/mame/video/cps1.c
/***************************************************************************
Build palette from palette RAM
12 bit RGB with a 4 bit brightness value.
***************************************************************************/
void cps_state::cps1_build_palette( const UINT16* const palette_base )
> So, I can program, but just because I can program doesn't mean that I'm capable of > quickly finding anything in a code that I never had contact with. That's why my > question has nothing to do with other people doing my homework.
You want to do something, but you don't want to invest any time into learning how to gain the information yourself. If we help you too much, then you might keep coming back for more information. If we tell you to figure it out yourself then you will either give up, or actually bother to learn. I don't care which of those you do.
|