# AbstractColourCube 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 AbstractColourCube : IColourSpace
```

Represents an immutable, generic colour cube with a normalised 4d coordinate. W is always assumed to represent transparency.

**Derived types:** [CmyCube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.cmycube.md), [HsvCube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.hsvcube.md), [LabCube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.labcube.md), [RgbCube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.rgbcube.md)

## Constructors

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

## Properties

- [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/colour.md)
- [Coordinate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/coordinate.md)
- [Cube](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/cube.md)
- [Filter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/filter.md)
- [Format](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/format.md)
- [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/icon.md)
- [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/nomen.md)
- [Pivot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/pivot.md)
- [Slice](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/slice.md)
- [Zoom](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/zoom.md)

## Methods

- [AssignCubeState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/assigncubestate.md): Most-derived type constructor invoke.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/draw.md): Render this cube into a graphics context.
- [GetChannels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/getchannels.md)
- [GetTexture](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/gettexture.md)
- [IColourSpace.RespondToMouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/grasshopper2-ui-colourpicker-models-icolourspace-respondtomousedown.md)
- [IColourSpace.RespondToMouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/grasshopper2-ui-colourpicker-models-icolourspace-respondtomousemove.md)
- [IColourSpace.RespondToMouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/grasshopper2-ui-colourpicker-models-icolourspace-respondtomouseup.md)
- [SetChannels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/setchannels.md)
- [SetColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/setcolour.md)
- [ToColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/tocolour.md): Convert from cube coordinate to colour.
- [ToPoint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.abstractcolourcube/topoint.md): Convert from colour to cube coordinate.
