ColorTools[Color]
Luma
retrieve the luma of a Color object
Calling Sequence
Parameters
Description
Examples
Compatibility
Luma(color)
color
-
a Color object created with ColorTools[Color]
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.3⁢R+0.59⁢G+0.11⁢B where (R,G,B) is the RGB triple for the color.
c ≔ ColorTools:-Color⁡green
c≔〈RGB : 0 1 0〉
Luma⁡c
0.590000000
The ColorTools[Color][Luma] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
Download Help Document
What kind of issue would you like to report? (Optional)