MKI_ColorChangeBrightness (Colors) Renamed in Version 2026.0

www.CAD6.com

C++ Syntax

MKI_COLORVALUE

MKI_ColorChangeBrightness(

 MKI_COLORVALUE f_cColor,

 MKI_COLORMODEL f_cColorMode,

 double f_dBrightness );

 

Changes the brightness of a given color.

 

Parameters

f_cColor

[MKI_COLORVALUE] Input color to be modified 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_*).

f_dBrightness

[double] Relative brightness of the returned color relative to the input color. Allowed values are -1.0 to 1.0. Negative values make the color darker, positive values make the color lighter. If the absolute value of f_dBrightness is too small to have an effect, no modification will be applied.

 

Return Value

The changed color in the color model determined by f_cColorMode.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH