MKI_ColorMix (Colors) Renamed in Version 2020.0

www.CAD6.com

C++ Syntax

MKI_COLORVALUE

MKI_ColorMix(

 MKI_COLORVALUE f_cColor1,

 MKI_COLORVALUE f_cColor2,

 MKI_COLORMODEL f_cColorMode,

 double f_dAmount );

 

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

 

Parameters

Color1

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

Color2

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

ColorMode

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

Amount

[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 ColorMode.

 

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 2025.0 - Copyright 2025 Malz++Kassner® GmbH