GripSkin

References
public sealed class GripSkin : IStorable
Immutable collection of plug skin settings.

Constructors

GripSkin

#
public GripSkin(
Color
inner,
Colour of grip interior.
Color
outer,
Colour of grip exterior.
radius
Radius of the whole grip, ring included.
)

GripSkin

#
Deserialization constructor.
public GripSkin(
reader
Reader object.
)

Properties

Inner

#
Gets the colour for the grip interior.
public Color Inner { get; }

InnerRadius

#
Gets the radius of the inner disc: the radius less the ring, see RingWidth(float).
public float InnerRadius { get; }

Outer

#
Gets the colour for the grip exterior.
public Color Outer { get; }

OuterRadius

#
Gets the width of the ring around the inner disc, see RingWidth(float).
public float OuterRadius { get; }

Radius

#
Gets the radius of the whole grip, ring included.
public float Radius { get; }

Methods

Fade

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

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Interpolate

#
Interpolate two grip properties.
public GripSkin Interpolate(
other,
factor
)

RingWidth

#
The width of the ring around the inner disc for a grip of the given radius. The ring grows with the grip, but slower: two pixels at the default radius of four, four pixels at radius ten. A fixed width looks like a wire around a large grip; half the radius looks like a hole.
public static float RingWidth(
radius
)