GH_ColourCube
ReferencesMaintains a collection of graphical shapes and coordinates that specify important features of the Colour Space Cube graphics.
Constructors
GH_ColourCube
#Create a new instance of this class.
public GH_ColourCube()
Rectangle
box,
Rectangle containing entire colour cube. Should be square.
space,
color
Properties
BackFace
#Gets a graphics path describing the back face of the cube. Caller is responsible for disposing of this path instance.
BottomFace
#Gets a graphics path describing the bottom face of the cube. Caller is responsible for disposing of this path instance.
LeftFace
#Gets a graphics path describing the left face of the cube. Caller is responsible for disposing of this path instance.
Pivot
#Gets the point that describes the center of the pivot on the slice.
public Point Pivot { get; }
S0
#Gets the first point in the shadow point list. This point is coincident with C0.
public Point S0 { get; }
S1
#Gets the second point in the shadow point list. This is the corner of the drop-shadow on the bottom face.
public Point S1 { get; }
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 Point S2 { get; }
S3
#Gets the fourth point in the shadow point list. This point is coincident with C7.
public Point S3 { get; }
S4
#Gets the fifth point in the shadow point list. This point is coincident with C4.
public Point S4 { get; }
Shadow
#Gets a graphics path describing the outline of the drop shadow. Caller is responsible for disposing of this path instance.
Silhouette
#Gets a graphics path describing the silhouette of the cube. Caller is responsible for disposing of this path instance.
Slice
#Gets the rectangle that describes the cutting slide through the current colour space.
public Rectangle Slice { get; }
Methods
Average
#Compute the average of four colours.
public Color Average()
Color
A,
First colour for average.
Color
B,
Second colour for average.
Color
C,
Third colour for average.
Color
D
Fourth colour for average.
Returns: The average of A, B, C and D.
Average
#Compute the average of two colours.
public Color Average()
Color
A,
First colour for average.
Color
B
Second colour for average.
Returns: The average of A and B.
ColorAtRail
#Get the color at a position along the depth rail.
Returns: Point4d structure representing the colour in the current space.
ColorAtSlice
#Get the color at a position on the slice.
Returns: Point4d structure representing the colour in the current space.