The OpenD Programming Language

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

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