public sealed class HspBall : AbstractColourBall
Implements AbstractColourSphere for the Hue-Saturation-Perceived Luminance model.

Constructors

HspBall

#
Create a new sphere.
public HspBall(
colour
Initial colour of sphere.
)

Properties

Colour

Gets the colour currently selected.
public Colour Colour { get; }
inherited fromAbstractColourBall
Colour

Coordinate

Gets or sets the sphere pivot location. The coordinate is normalised along all dimensions, with x representing the longitude, y the latitude, z the perpendicular and w the opacity.
public Point4d Coordinate { get; }
inherited fromAbstractColourBall

Disc

Gets the boundary of the disc. This field will be unset before the first paint.
public CircleF Disc { get; }
inherited fromAbstractColourBall

Filter

#
public override NamedPalette Filter { get; set; }

Format

#
Format the current model.
public override string Format { get; }

Icon

#
public override IIcon Icon { get; }

Nomen

Gets the description of this model.
public Nomen Nomen { get; }
inherited fromAbstractColourBall
Nomen

Pivot

Gets the centre point of the pivot. This field will be unset before the first paint.
public PointF Pivot { get; }
inherited fromAbstractColourBall

PivotVisible

Gets whether the pivot is on the visible part of the sphere.
public bool PivotVisible { get; }
inherited fromAbstractColourBall

Rotation

Gets the current rotation for this sphere.
public SphereRotation Rotation { get; }
inherited fromAbstractColourBall

Sphere

Gets the physical sphere.
public Sphere Sphere { get; }
inherited fromAbstractColourBall

Zoom

Gets the zoom factor that was relevant during the most recent paint operation.
public float Zoom { get; }
inherited fromAbstractColourBall

Methods

AssignSphereState

Most-derived type constructor invoke.
protected void AssignSphereState(
point,
New point.
colour,
New colour.
rotation
Rotation.
)
inherited fromAbstractColourBall
Must return new instance of the derived type.

Draw

Render this sphere into a graphics context.
public void Draw(
context,
Graphics context.
RectangleF
bounds,
Sphere bounds.
visuals
Sphere drawing properties.
)
inherited fromAbstractColourBall
Draw

GetChannels

#
Gets the channel values of the current space.
public override void GetChannels(
channel1,
Properties of first channel.
channel2,
Properties of second channel.
channel3
Properties of third channel.
)

GetTexture

#
Gets the texture for the current projection.
protected override IMultiResolutionTexture GetTexture()

SetChannels

#
Sets the three channel values.
public override void SetChannels(
channel1,
First channel.
channel2,
Second channel.
channel3
Third channel.
)
True if new channels were successfully applied, false if some rounding/clipping was required.

SetColour

Modify the point of this cube to match a certain colour.
public void SetColour(
colour
Colour to match.
)
inherited fromAbstractColourBall
Modified cube.
SetColour

ToColour

#
Convert from sphere coordinate to colour.
protected override Colour ToColour(
point
)

ToPoint

#
Convert from colour to sphere coordinate.
protected override Point4d ToPoint(
colour
)