Modifier.Hue

Modifier
public sealed class Modifier.Hue : Modifier
Rotates the hue of a colour by a whole number of degrees.

Constructors

Hue

#
public Hue(int degrees)
degrees (int)

Properties

Degrees

#
public int Degrees { get; }

Dependencies

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

Kind

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

Methods

Apply

#
public override SkinValue Apply(SkinValue value, Func<PropertyId, SkinValue> resolve)
value (SkinValue)
resolve (Func<PropertyId, SkinValue>)
Modifier.Apply

ToString

public override string ToString()
inherited fromModifier
Object.ToString

ToText

#
public override string ToText()
Modifier.ToText

WithoutReferences

public virtual Modifier WithoutReferences(Func<PropertyId, SkinValue> resolve)
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.
inherited fromModifier
resolve (Func<PropertyId, SkinValue>)