GH_Grip

References
Represents a grip in a gradient. A grip defines both where and how the colour of a gradient changes.

Constructors

GH_Grip

#
public GH_Grip()

GH_Grip

#
public GH_Grip(
parameter,
Color
colour
)

GH_Grip

#
public GH_Grip(
parameter,
Color
colourLeft,
Color
colourRight
)

GH_Grip

#
public GH_Grip(
GH_Grip
other
)

Properties

ColourLeft

#
Gets the colour to the left of this grip.
public Color ColourLeft { get; set; }

ColourRight

#
Gets the colour to the right of this grip.
public Color ColourRight { get; set; }

GripId

#
Gets the Grip ID.
public Guid GripId { get; }

IsValid

#
Gets whether this grip is valid. A valid grip must have a non-empty Id and a non-NaN parameter.
public bool IsValid { get; }

Parameter

#
Gets or sets the numeric parameter of the grip.
public double Parameter { get; set; }

Selected

#
Gets or sets whether this grip is selected. Selection state is not (de)serialized.
public bool Selected { get; set; }

Type

#
Gets whether the colour across this grip is smooth.
public GH_GripType Type { get; }

Methods

Blend

#
public static Color Blend(
Color
A,
Color
B,
t
)

CompareTo

#
public int CompareTo(
other
)

MutateId

#
Create a new grip ID.
public void MutateId()

Read

#
public bool Read(
reader
)
Read

Write

#
public bool Write(
writer
)
Write