# GH_ColourCube class

Namespace: [Grasshopper.GUI.Base](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.base.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_ColourCube
```

Maintains a collection of graphical shapes and coordinates that specify important features of the Colour Space Cube graphics.

## Constructors

- [GH_ColourCube](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/ctor.md): Create a new instance of this class.

## Properties

- [BackFace](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/backface.md): Gets a graphics path describing the back face of the cube. Caller is responsible for disposing of this path instance.
- [BottomFace](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/bottomface.md): Gets a graphics path describing the bottom face of the cube. Caller is responsible for disposing of this path instance.
- [C0](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c0.md): Gets the first point in the corner point list.
- [C1](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c1.md): Gets the second point in the corner point list.
- [C2](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c2.md): Gets the third point in the corner point list.
- [C3](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c3.md): Gets the fourth point in the corner point list.
- [C4](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c4.md): Gets the fifth point in the corner point list.
- [C5](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c5.md): Gets the sixth point in the corner point list.
- [C6](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c6.md): Gets the seventh point in the corner point list.
- [C7](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/c7.md): Gets the eighth point in the corner point list.
- [Grip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/grip.md): Gets the rectangle that describes the slice grip.
- [LeftFace](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/leftface.md): Gets a graphics path describing the left face of the cube. Caller is responsible for disposing of this path instance.
- [Pivot](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/pivot.md): Gets the point that describes the center of the pivot on the slice.
- [S0](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/s0.md): Gets the first point in the shadow point list. This point is coincident with C0.
- [S1](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/s1.md): Gets the second point in the shadow point list. This is the corner of the drop-shadow on the bottom face.
- [S2](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/s2.md): Gets the third point in the shadow point list. This point is the kink of the drop-shadow on the edge connecting C2 and C3.
- [S3](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/s3.md): Gets the fourth point in the shadow point list. This point is coincident with C7.
- [S4](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/s4.md): Gets the fifth point in the shadow point list. This point is coincident with C4.
- [Shadow](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/shadow.md): Gets a graphics path describing the outline of the drop shadow. Caller is responsible for disposing of this path instance.
- [Silhouette](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/silhouette.md): Gets a graphics path describing the silhouette of the cube. Caller is responsible for disposing of this path instance.
- [Slice](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/slice.md): Gets the rectangle that describes the cutting slide through the current colour space.

## Methods

- [Average](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/average.md): (2 overloads) Compute the average of four colours.
- [Blend](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/blend.md): Inteprolate between two colours.
- [ColorAtRail](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/coloratrail.md): Get the color at a position along the depth rail.
- [ColorAtSlice](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/coloratslice.md): Get the color at a position on the slice.
- [RenderAll](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderall.md): Call all render methods in the correct order.
- [RenderBackEdges](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderbackedges.md): Render the edges of the back face creases.
- [RenderBackFaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderbackfaces.md): Render the fills of the backfaces.
- [RenderDropShadow](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderdropshadow.md): Render the drop shadow of the cube.
- [RenderEdgeShadows](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderedgeshadows.md): Render the edge shadows of the cube due to GI.
- [RenderForeEdges](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderforeedges.md): Render the edges of the fore face creases.
- [RenderGrip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/rendergrip.md): Render the slice grip.
- [RenderPivot](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderpivot.md): Render the colour pivot on the current slice.
- [RenderSilhouetteEdges](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/rendersilhouetteedges.md): Render the edges of the cube silhouettes.
- [RenderSlice](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderslice.md): Render the square slice with colour gradients.
- [RenderSliceDropShadow](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderslicedropshadow.md): Render the drop shadow onto the slice.
- [RenderSliceEdgeShadows](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/rendersliceedgeshadows.md): Render the edge shadows of the slice due to GI.
- [RenderSliceSilhouetteEdges](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourcube/renderslicesilhouetteedges.md): Render the silhouette edges of the slice.
