ToRGB - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


ColorTools[Color]

  

ToRGB

  

retrieve the RGB triple of a Color object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ToRGB(color)

Parameters

color

-

Color object created with ColorTools[Color]

Description

• 

The ToRGB command returns the RGB floats from 0. to 1.0 of a Color object as a list.

Examples

> 

p≔ColorTools:-Color⁡pink

p≔⟨RGB : 1 0.753 0.796⟩

(1)
> 

ToRGB⁡p

1.0000000,0.75294118,0.79607843

(2)
> 

r≔ColorTools:-Color⁡HSV,red

r≔⟨HSV : 0 1 1⟩

(3)
> 

ToRGB⁡r

1.0000000,0.,0.

(4)

Compatibility

• 

The ColorTools[Color][ToRGB] command was introduced in Maple 2017.

• 

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

See Also

ColorTools[Color]