C# Класс R3.Drawing.Coloring

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Inverse ( Color c ) : Color

Описание методов

ColorAlongHexagon() публичный статический Метод

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
Результат Color

DepthColor() публичный статический Метод

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
Результат Color