Re: topcolor to rgb -
19-04-2004
I believe the colors used for topcolor and bottomcolor come from the color palette in the palette.bmp file.
The palette.bmp file can be found in the valve\pak0.pak file in the gfx folder. The image isn't important (it's just a little face drawn in blue on a greenish grey background). It's the palette from that .bmp file that's used for color values from 0 to 255. For example, palette index 251 is bright red (R=255, B=0, G=0) and is used for blood in the engine.
botman
|