GuideToColourFunction

A callable struct that translates any value into a colour

Members

Functions

opCall
auto opCall(T value, bool scale)

Call the function with a value

toDouble
auto toDouble(T value, bool scale)
Undocumented in source. Be warned that the author may not have intended to support it.
unscaled
auto unscaled(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)

scaleFunction
Nullable!(double delegate(double)) scaleFunction;

Additional scaling of the field (i.e. log10, polar coordinates)

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