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

Online Help

All Products    Maple    MapleSim


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

withColorTools:

ToRGB24Red

255,0,0

(1)

ToRGB24red

255,0,0

(2)

ToRGB24ColorHSV,0.,1.,1.

255,0,0

(3)

ToRGB240,1,1,HSV

255,0,0

(4)

ToRGB24255,0,0

255,0,0

(5)

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

ToRGB240.,1.,0.

0,255,0

(6)

ToRGB240,1,0

0,255,0

(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]