ColourMixture

public class ColourMixture
Utility class for creating linear combinations of colours.

Constructors

ColourMixture

#
Create a new aggregator.
public ColourMixture(
linearise
If true, colours are linearised prior to combining. This involves additional steps, but tends to yield a more natural blending of colours.
)

Properties

Linearise

#
Gets whether the aggregate is computed in linear RGB or sRGB.
public bool Linearise { get; }

Result

#
Gets the aggregate colour. The channels in the colour may exceed the LDR limits.
public Color Result { get; }

Methods

Add

#
Add a colour to this set.
public void Add(
Color
rgb,
Colour to add.
weight
Relative weight of colour.
)