ToRGB24 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

ColorTools

  

ToRGB24

  

convert a color format to a list of RGB values

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ToRGB24( input )

ToRGB24( input, colorspace )

Parameters

input

-

color format recognized by ColorTools

colorspace

-

string specifying the color space of the input coordinates

Description

• 

The ToRGB24 procedure converts from any of the color formats recognized by ColorTools to a list of integer RGB values.  If the input cannot be recognized as a color, an error is thrown.

• 

In the second calling sequence, the input must be a list of coordinates in the color space specified by colorspace.  For information on known color spaces, see ColorTools/ColorSpaces.

Examples

(1)

(2)

(3)

(4)

(5)

A list of 0 and 1 integers is ambiguous.  ToRGB24 will treat them as floats.

(6)

(7)

Compatibility

• 

The ColorTools[ToRGB24] command was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Color]

 


Download Help Document