C# Class R3.Drawing.Coloring

显示文件 Open project: roice3/Honeycombs

Public Methods

Method Description
ColorAlongHexagon ( int incrementsUntilRepeat, int increments ) : Color

This will calculate the color along a hexagon on the edges of an RGB cube. incrementsUntilRepeat is the value where we return to the starting point of the hexagon (white). increments is used as the distance-along-hexagon parameter.

DepthColor ( int depth, double colorScaling, bool invert = false ) : Color

This method allows calculating a color based on a color scaling input. This was the way I did this for a long time and for many images, until working with Henry on coloring. Keeping this code here for reference.

Private Methods

Method Description
Inverse ( Color c ) : Color

Method Details

ColorAlongHexagon() public static method

This will calculate the color along a hexagon on the edges of an RGB cube. incrementsUntilRepeat is the value where we return to the starting point of the hexagon (white). increments is used as the distance-along-hexagon parameter.
public static ColorAlongHexagon ( int incrementsUntilRepeat, int increments ) : Color
incrementsUntilRepeat int
increments int
return Color

DepthColor() public static method

This method allows calculating a color based on a color scaling input. This was the way I did this for a long time and for many images, until working with Henry on coloring. Keeping this code here for reference.
public static DepthColor ( int depth, double colorScaling, bool invert = false ) : Color
depth int
colorScaling double
invert bool
return Color