Thread: topcolor to rgb
View Single Post
Re: topcolor to rgb
Old
  (#4)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default 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
  
Reply With Quote