RadialPalette

References
Represents a radial palette with a central colour.

Properties

BrownPalette

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

Central

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

Gradient

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

Palette

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

SpectralPalette

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

Methods

ColourAt

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

ColourAtOrthogonal

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

ColourAtRadial

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

CompareTo

#
public int CompareTo(RadialPalette other)
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.
other (RadialPalette)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

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

ModifyCentralColour

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