RGBINDEX
Name
RGBINDEX
Purpose
Translates RGB triplets into colour indices for 24-bit decomposed mode.
Category
Plot
Calling Sequence
Result = RGBINDEX(R, G, B)
Inputs
R: A byte or array of bytes of red values.
G: A byte or array of bytes of green values.
B: A byte or array of bytes of blue values.
Outputs
Returns the colour index or indices for 24-bit decomposed mode
(DEVICE, DECOMPOSED=1) corresponding to the R,G,B triplets.
Example
r = [0,128,255]
g = [128,128,128]
b = [255,128,0]
colourarray = RGBINDEX(r, g, b)
Modification History
Written by: Jeremy Bailin
12 June 2008 Public release in JBIU