Modifier
ReferencesA step applied to an inherited value on its way from the source property to the property that inherits it. Colour modifiers work in Oklab, so equal amounts look like equal changes. Amounts are integer percentages (or whole degrees for hue), which is as fine as the UI needs. The set of modifiers is closed; the nested types are all there are.
Properties
Methods
ToText
#Write this modifier the way it appears in a skin definition file, for example "Luminance -20%".
TryParse
#Parse a modifier from its text form.
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.
Parameters:
| resolve (Func<PropertyId, SkinValue>) |