MKI_ColorMix (Colors) Changed in Version 2026.0

www.CAD6.com

C++ Syntax

MKI_COLORVALUE

MKI_ColorMix(

 MKI_COLORVALUE f_cColor1,

 MKI_COLORMODEL f_cColorMode1,

 MKI_COLORVALUE f_cColor2,

 MKI_COLORMODEL f_cColorMode2,

 double f_dAmount );

 

Mixes one given color with a second color by a specified amount.

 

Parameters

f_cColor1

[MKI_COLORVALUE] Color to be modified in the notation defined by f_cColorMode1.

f_cColorMode1

[MKI_COLORMODEL] This value determines how the contents of f_cColor1 are to be interpreted (see MKI_COLORMODE_*).

f_cColor2

[MKI_COLORVALUE] Color to be mixed to the first color in the notation defined by f_cColorMode2.

f_cColorMode1

[MKI_COLORMODEL] This value determines how the contents of f_cColor2 are to be interpreted (see MKI_COLORMODE_*).

f_dAmount

[double] Determines how much the second color shall be mixed into the first color. Allowed values are from 0.0 to 1.0.

 

Return Value

The mixed color in the color model determined by f_cColorMode1.

 

Comment

Obviously, both colors have to be in the same color model. If you want to mix colors from different color models, convert one color into the other color's color model using MKI_ColorConvertMode before.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH