MKI_ColorBrightness (Colors) New in Version 2022.2

www.CAD6.com

C++ Syntax

double

MKI_ColorBrightness(

 MKI_COLORVALUE f_cColor,

 MKI_COLORMODEL f_cColorMode );

 

Calculates the brightness of a given color.

 

Parameters

Color

[MKI_COLORVALUE] Input color to be faded in the notation defined by ColorMode.

ColorMode

[MKI_COLORMODEL] This value determines how the content of Color is to be interpreted (see MKI_COLORMODE_*).

 

Return Value

The brightness of the color, with 0.0 representing black and 1.0 representing white.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH