Documentation for jbiu/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

plot/

rgbindex.pro


top source rgbindex

Plot

result = rgbindex(r, g, b)

Translates RGB triplets into colour indices for 24-bit decomposed mode.

Return value

Returns the colour index or indices for 24-bit decomposed mode (DEVICE, DECOMPOSED=1) corresponding to the R,G,B triplets.

Parameters

r in

A byte or array of bytes of red values.

g in

A byte or array of bytes of green values.

b in

A byte or array of bytes of blue values.

Examples

r = [0,128,255] g = [128,128,128] b = [255,128,0] colourarray = RGBINDEX(r, g, b)

Author information

History:

Written by: Jeremy Bailin 12 June 2008 Public release in JBIU

File attributes

Modification date: Wed Apr 15 16:08:16 2009
Lines: 38