GripsSkin

References
public sealed class GripsSkin : IStorable
A collection of grip properties.

Constructors

GripsSkin

#
Create a new grip palette.
public GripsSkin(
normal,
disabled,
tentative
)

GripsSkin

#
Deserialisation constructor.
public GripsSkin(
reader
)

Fields

DefaultDim

#
Gets the default Grip properties in dark mode.
public static readonly GripsSkin DefaultDim

DefaultLit

#
Gets the default Grip properties in bright mode.
public static readonly GripsSkin DefaultLit

Indexers

this[]

#
Gets the grip properties associated with the given kind.
public GripSkin this[] { get; }

Methods

Fade

#
Multiply the alpha value colours in this collection with the given factor.
public GripsSkin Fade(
factor
Fading factor. 0=fully transparent, 1=no change.
)
Modified palette.

Interpolate

#
Interpolate between schemes.
public GripsSkin Interpolate(
other,
Other scheme.
factor
Interpolation factor.
)
Interpolated scheme.

Store

#
This method is called whenever the instance is required to serialize itself.
public void Store(
writer
Writer object to serialize with.
)
Store

With

#
Modify one of the grips.
public GripsSkin With(
kind,
Index of grip spec to modify.
gripSkin
New grip.
)
Modified grips.