Skip to content

GH_ColourCube

Public Class

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

Inheritance Hierarchy

System.Object
Grasshopper.GUI.Base.GH_ColourCube

Namespace: Grasshopper.GUI.Base

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_ColourCube

The GH_ColourCube type exposes the following members.

Constructors

Name

Description


Public Method

Create a new instance of this class.


Properties

Name

Description


Public Property

Gets a graphics path describing the back face of the cube. Caller is responsible for disposing of this path instance.


Public Property

Gets a graphics path describing the bottom face of the cube. Caller is responsible for disposing of this path instance.


Public Property

Gets the first point in the corner point list.


Public Property

Gets the second point in the corner point list.


Public Property

Gets the third point in the corner point list.


Public Property

Gets the fourth point in the corner point list.


Public Property

Gets the fifth point in the corner point list.


Public Property

Gets the sixth point in the corner point list.


Public Property

Gets the seventh point in the corner point list.


Public Property

Gets the eighth point in the corner point list.


Public Property

Gets the rectangle that describes the slice grip.


Public Property

Gets a graphics path describing the left face of the cube. Caller is responsible for disposing of this path instance.


Public Property

Gets the point that describes the center of the pivot on the slice.


Public Property

Gets the first point in the shadow point list. This point is coincident with C0.


Public Property

Gets the second point in the shadow point list. This is the corner of the drop-shadow on the bottom face.


Public Property

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.


Public Property

Gets the fourth point in the shadow point list. This point is coincident with C7.


Public Property

Gets the fifth point in the shadow point list. This point is coincident with C4.


Public Property

Gets a graphics path describing the outline of the drop shadow. Caller is responsible for disposing of this path instance.


Public Property

Gets a graphics path describing the silhouette of the cube. Caller is responsible for disposing of this path instance.


Public Property

Gets the rectangle that describes the cutting slide through the current colour space.


Methods

Name

Description


Public Method

Compute the average of two colours.


Public Method

Compute the average of four colours.


Public Method

Inteprolate between two colours.


Public Method

Get the color at a position along the depth rail.


Public Method

Get the color at a position on the slice.


Public Method

Call all render methods in the correct order.


Public Method

Render the edges of the back face creases.


Public Method

Render the fills of the backfaces.


Public Method

Render the drop shadow of the cube.


Public Method

Render the edge shadows of the cube due to GI.


Public Method

Render the edges of the fore face creases.


Public Method

Render the slice grip.


Public Method

Render the colour pivot on the current slice.


Public Method

Render the edges of the cube silhouettes.


Public Method

Render the square slice with colour gradients.


Public Method

Render the drop shadow onto the slice.


Public Method

Render the edge shadows of the slice due to GI.


Public Method

Render the silhouette edges of the slice.