RGB255.Mix

Method in RGB255


Declaration

public Color Mix(Color other, float weight = 0.5F)

Description

Returns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.

Parameters

otherThe other color to mix.
weightThe weight to mix with between [0..1] (default=0.5).

Returns

ColorThe result of mixing the two colors.

Overload

Declaration

public RGB255 Mix(RGB255 other, float weight = 0.5F)

Description

Returns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.

Parameters

otherThe other color to mix.
weightThe weight to mix with between [0..1] (default=0.5).

Returns

RGB255The result of mixing the two colors.