GH_ColourCube
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
GH_ColourCube
Create a new instance of this class.
Properties
Name
Description
Public Property
BackFace
Gets a graphics path describing the back face of the cube. Caller is responsible for disposing of this path instance.
Public Property
BottomFace
Gets a graphics path describing the bottom face of the cube. Caller is responsible for disposing of this path instance.
Public Property
C0
Gets the first point in the corner point list.
Public Property
C1
Gets the second point in the corner point list.
Public Property
C2
Gets the third point in the corner point list.
Public Property
C3
Gets the fourth point in the corner point list.
Public Property
C4
Gets the fifth point in the corner point list.
Public Property
C5
Gets the sixth point in the corner point list.
Public Property
C6
Gets the seventh point in the corner point list.
Public Property
C7
Gets the eighth point in the corner point list.
Public Property
Grip
Gets the rectangle that describes the slice grip.
Public Property
LeftFace
Gets a graphics path describing the left face of the cube. Caller is responsible for disposing of this path instance.
Public Property
Pivot
Gets the point that describes the center of the pivot on the slice.
Public Property
S0
Gets the first point in the shadow point list. This point is coincident with C0.
Public Property
S1
Gets the second point in the shadow point list. This is the corner of the drop-shadow on the bottom face.
Public Property
S2
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
S3
Gets the fourth point in the shadow point list. This point is coincident with C7.
Public Property
S4
Gets the fifth point in the shadow point list. This point is coincident with C4.
Public Property
Shadow
Gets a graphics path describing the outline of the drop shadow. Caller is responsible for disposing of this path instance.
Public Property
Silhouette
Gets a graphics path describing the silhouette of the cube. Caller is responsible for disposing of this path instance.
Public Property
Slice
Gets the rectangle that describes the cutting slide through the current colour space.
Methods
Name
Description
Public Method
Average(Color, Color)
Compute the average of two colours.
Public Method
Average(Color, Color, Color, Color)
Compute the average of four colours.
Public Method
Blend
Inteprolate between two colours.
Public Method
ColorAtRail
Get the color at a position along the depth rail.
Public Method
ColorAtSlice
Get the color at a position on the slice.
Public Method
RenderAll
Call all render methods in the correct order.
Public Method
RenderBackEdges
Render the edges of the back face creases.
Public Method
RenderBackFaces
Render the fills of the backfaces.
Public Method
RenderDropShadow
Render the drop shadow of the cube.
Public Method
RenderEdgeShadows
Render the edge shadows of the cube due to GI.
Public Method
RenderForeEdges
Render the edges of the fore face creases.
Public Method
RenderGrip
Render the slice grip.
Public Method
RenderPivot
Render the colour pivot on the current slice.
Public Method
RenderSilhouetteEdges
Render the edges of the cube silhouettes.
Public Method
RenderSlice
Render the square slice with colour gradients.
Public Method
RenderSliceDropShadow
Render the drop shadow onto the slice.
Public Method
RenderSliceEdgeShadows
Render the edge shadows of the slice due to GI.
Public Method
RenderSliceSilhouetteEdges
Render the silhouette edges of the slice.