GradientGrip

References
[IoId("00000000-F09C-4616-9F59-0CDB195B33C8")] public sealed class GradientGrip : IStorable, IComparable<GradientGrip>, IEquatable<GradientGrip>
Represents a grip in a colour gradient.

Constructors

GradientGrip

#
Create a new continuous grip.
public GradientGrip(
parameter,
Grip parameter.
Color
colour
Grip colour.
)

GradientGrip

#
Create a new continuous grip.
public GradientGrip(
parameter,
Grip parameter.
Color
colourIn,
Colour going into the left side of the grip.
Color
colourOut
Colour coming out of the right side of the grip.
)

GradientGrip

#
Create a new continuous grip.
public GradientGrip(
parameter,
Grip parameter.
colour
Grip colour.
)

GradientGrip

#
Create a new discontinuous grip.
public GradientGrip(
parameter,
Grip parameter.
colourIn,
Colour going into the left side of the grip.
colourOut
Colour coming out of the right side of the grip.
)

GradientGrip

#
Deserialization constructor.
public GradientGrip(
reader
Reader to deserialize from.
)

Properties

Average

#
Gets the average grip colour.
public Colour Average { get; }

Id

#
Gets the ID of this grip.
public Guid Id { get; }

In

#
Gets the colour going into the left side of this grip.
public Colour In { get; }

IsContinuous

#
Gets whether this grip is continuous, i.e. if the left colour and right colour are identical.
public bool IsContinuous { get; }

Out

#
Gets the colour coming out of the right side of this grip.
public Colour Out { get; }

Parameter

#
Gets the parameter of this grip.
public double Parameter { get; }

Methods

Store

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

WithColour

#
Create a new grip based on the current grip but with a different colour.
public GradientGrip WithColour(
newColour
New colour value.
)
Recoloured grip.

WithColour

#
Create a new grip based on the current grip but with a different colour.
public GradientGrip WithColour(
newColourIn,
New colour in value.
newColourOut
New colour out value.
)
Recoloured grip.

WithNewId

#
Create a new identical grip with a different Id.
public GradientGrip WithNewId()

WithParameter

#
Create a new grip based on the current grip but with a new parameter.
public GradientGrip WithParameter(
parameter
New parameter value.
)
Moved grip.