# AbstractColourBall class

Namespace: [Grasshopper2.UI.ColourPicker.Models](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.colourpicker.models.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class AbstractColourBall : IColourSpace
```

Represents an immutable, generic colour sphere with a normalised 4d coordinate. X equals longitude and ranges from zero to 360, Y equals latitude and ranges from -90 to +90, Z is a normalised perpendicular dimension used only by the texture cache, and W is always assumed to represent transparency.

**Derived types:** [HspBall](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.hspball.md)

## Constructors

- [AbstractColourBall](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/ctor.md): Create a new sphere.

## Properties

- [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/colour.md): Gets the colour currently selected.
- [Coordinate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/coordinate.md): 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.
- [Disc](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/disc.md): Gets the boundary of the disc. This field will be unset before the first paint.
- [Filter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/filter.md)
- [Format](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/format.md): Format the current model.
- [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/icon.md)
- [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/nomen.md): Gets the description of this model.
- [Pivot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/pivot.md): Gets the centre point of the pivot. This field will be unset before the first paint.
- [PivotVisible](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/pivotvisible.md): Gets whether the pivot is on the visible part of the sphere.
- [Rotation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/rotation.md): Gets the current rotation for this sphere.
- [Sphere](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/sphere.md): Gets the physical sphere.
- [Zoom](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/zoom.md): Gets the zoom factor that was relevant during the most recent paint operation.

## Methods

- [AssignSphereState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/assignspherestate.md): Most-derived type constructor invoke.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/draw.md): Render this sphere into a graphics context.
- [GetChannels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/getchannels.md): Gets the channel values of the current space.
- [GetTexture](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/gettexture.md): Gets the texture for the current projection.
- [IColourSpace.RespondToMouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/grasshopper2-ui-colourpicker-models-icolourspace-respondtomousedown.md)
- [IColourSpace.RespondToMouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/grasshopper2-ui-colourpicker-models-icolourspace-respondtomousemove.md)
- [IColourSpace.RespondToMouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/grasshopper2-ui-colourpicker-models-icolourspace-respondtomouseup.md)
- [SetChannels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/setchannels.md): Sets the three channel values.
- [SetColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/setcolour.md): Modify the point of this cube to match a certain colour.
- [ToColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/tocolour.md): Convert from sphere coordinate to colour.
- [ToPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourball/topoint.md): Convert from colour to sphere coordinate.
