GuideToColourFunction

A callable struct that translates any value into a colour

Members

Functions

opCall
auto opCall(T value)

Call the function with a value

toDouble
auto toDouble(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

doubleConvert
RGBA delegate(double) doubleConvert;

Function that governs translation from double to colour (continuous to colour)

stringConvert
RGBA delegate(string) stringConvert;

Function that governs translation from string to colour (discrete to colour)

stringToDoubleConvert
double delegate(string) stringToDoubleConvert;

Function that governs translation from string to double (discrete to continuous)

Meta