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

Online Help

All Products    Maple    MapleSim


ColorTools[Color]

  

Luma

  

retrieve the luma of a Color object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Luma(color)

Parameters

color

-

a Color object created with ColorTools[Color]

Description

• 

The Luma command returns the luma of a Color object, which is a float between 0. and 1.0 representing the lightness of a color with 1.0 being white and 0. being black.

• 

The calculation is performed using the formula Y '=0.3R+0.59G+0.11B where (R,G,B) is the RGB triple for the color.

Examples

cColorTools:-Colorgreen

cRGB : 0 1 0

(1)

Lumac

0.590000000

(2)

Compatibility

• 

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

• 

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

See Also

ColorTools[Color]