vis/color/

mg_rgb2index.pro

Routines

Convert RGB coordinates of colors to the decomposed color indices of the
colors. Color indices are long integers used in decomposed color in direct
graphics where the lowest order byte value is the red value, the next byte
is the green value, the next byte is the blue value, and the highest order
byte value is unused.