Show / Hide Table of Contents

Struct ColourEffectConfiguration

Simple colour modification effects Mulitple effects can be combined, the result of one effect is fed into the input source of the next The ordering is: [Clear Surface Background?] -> Single Colour -> GrayScale -> Colourise -> Negative -> Opacity

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct ColourEffectConfiguration

Properties

BackgroundClearColour

If the user elects to clear the desination surface being rendering, this is the colour used

Declaration
public Colour BackgroundClearColour { readonly get; set; }
Property Value
Type Description
Colour

ClearBackground

Destination surface can be cleared with a chosen colour before rendering if desired

Declaration
public bool ClearBackground { readonly get; set; }
Property Value
Type Description
bool

ColourForSingleColourAndColourise

Selected colour to mix in single colour and colourise effects

Declaration
public Colour ColourForSingleColourAndColourise { readonly get; set; }
Property Value
Type Description
Colour

Colourise

Mix source with colourised image (0 to 1). 1 being entirely colourised

Declaration
public float Colourise { readonly get; set; }
Property Value
Type Description
float

GrayScale

Mix source with grayscaled image (0 to 1). 1 being entirely grayscale

Declaration
public float GrayScale { readonly get; set; }
Property Value
Type Description
float

Negative

Mix source with negative image (0 to 1). 1 being entirely negative

Declaration
public float Negative { readonly get; set; }
Property Value
Type Description
float

Opacity

Multiply all RGBA components of colour by opacity value (0 to 1)

Declaration
public float Opacity { readonly get; set; }
Property Value
Type Description
float

SingleColour

Mix source with a single colour (0 to 1), 1 being entirely the chosen colour

Declaration
public float SingleColour { readonly get; set; }
Property Value
Type Description
float
In this article
Back to top yak2D - Alex Paterson