|
MKI_ColorGetBrightness (Colors) New in Version 2022.2 |
www.CAD6.com |
C++ Syntaxdouble MKI_ColorGetBrightness( MKI_COLORVALUE f_cColor, MKI_COLORMODEL f_cColorMode );
Calculates the brightness of a given color.
Parametersf_cColor [MKI_COLORVALUE] Input color to be faded in the notation defined by f_cColorMode. f_cColorMode [MKI_COLORMODEL] This value determines how the content of f_cColor is to be interpreted (see MKI_COLORMODE_*).
Return ValueThe brightness of the color, with 0.0 representing black and 1.0 representing white.
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH