HSV.Mix

Method in HSV

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 HSV Mix(HSV 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

HSVThe result of mixing the two colors.