RadialPalette

References
Represents a radial palette with a central colour.

Properties

BrownPalette

#
Gets the default brown palette.
public static RadialPalette BrownPalette { get; }

Central

#
Gets the central colour.
public Color Central { get; }

Gradient

#
Gets the gradient made from the palette ring.
public Gradient Gradient { get; }

Palette

#
Gets the palette for this colour. Do not modify this array.
public Color[] Palette { get; }

SpectralPalette

#
Gets the default spectral palette.
public static RadialPalette SpectralPalette { get; }

Methods

ColourAt

#
Evaluate a colour on the disc.
public Color ColourAt(
PointF
point,
Point for evaluation.
disc
Palette disc.
)

ColourAtOrthogonal

#
Evaluate a colour on the disc using orthogonal coordinates.
public Color ColourAtOrthogonal(
dx,
Normalised angle of location.
dy
Normalised radius of location.
)

ColourAtRadial

#
Evaluate a colour on the disc using radial coordinates.
public Color ColourAtRadial(
angle,
Normalised angle of location.
radius
Normalised radius of location.
)

CompareTo

#
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(
other
An object to compare with this instance.
)
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other in the sort order. Zero This instance occurs in the same position in the sort order as other. Greater than zero This instance follows other in the sort order.

Equals

#
Indicates whether the current object is equal to another object of the same type.
public bool Equals(
other
An object to compare with this object.
)
true if the current object is equal to the other parameter; otherwise, false.

ModifyCentralColour

#
Modify this palette to have a new central colour.
public RadialPalette ModifyCentralColour(
Color
central
New central colour.
)