RGBToRGB24 - Maple Help

ColorTools

 RGBToRGB24
 convert floating-point RGB to 24-bit color value

 Calling Sequence RGBToRGB24(fl)

Parameters

 fl - list; list of 3 float values between 0-1 that represent a color

Description

 • The RGBToRGB24 command converts from a float RGB color to a 24-bit RGB color. If the input is not a valid float color, an error is thrown.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{RGBToRGB24}\left(\left[1.,1.,0.\right]\right)$
 $\left[{255}{,}{255}{,}{0}\right]$ (1)
 > $\mathrm{RGBToRGB24}\left(\left[0,-0.01,0\right]\right)$

Compatibility

 • The ColorTools[RGBToRGB24] command was introduced in Maple 16.