Modifier.Contrast

Modifier
public sealed class Modifier.Contrast : Modifier
Stretches lightness away from mid-grey, or squeezes it towards mid-grey for negative percentages. Light colours get lighter and dark ones darker, so the order of a set of shades is kept; at -100% every colour has the same lightness. Chroma is left alone, that is what Modifier.Saturation is for.

Constructors

Contrast

#
public Contrast(
percent
)

Fields

Pivot

#
The Oklab lightness that stays put.
public const double Pivot = 0.5

Properties

Dependencies

Gets the properties this modifier reads besides the value it modifies. Most modifiers read none; a mix towards another property reads that one.
public virtual PropertyId[] Dependencies { get; }
inherited fromModifier

Kind

#
public override PropertyType Kind { get; }
Modifier.Kind

Percent

#
public int Percent { get; }

Methods

Apply

#
public override SkinValue Apply()
Modifier.Apply

ToString

public override string ToString()
inherited fromModifier
Object.ToString

ToText

#
public override string ToText()
Modifier.ToText

WithoutReferences

A copy of this modifier with every property reference replaced by the colour it resolves to right now, so the modifier can be applied without a definition at hand. Modifiers without references return themselves.
public virtual Modifier WithoutReferences()
inherited fromModifier