public struct GuideToColourFunction

A callable struct that translates any value into a colour

public auto opCall(T)(
    in T value, 
    bool scale = true) const

Call the function with a value

public RGBA delegate(double) doubleConvert

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

public RGBA delegate(string) stringConvert

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

public double delegate(string) stringToDoubleConvert

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

public Nullable!(double delegate(double)) scaleFunction

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

Variables

doubleConvert
RGBA delegate(double)

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

stringConvert
RGBA delegate(string)

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

stringToDoubleConvert
double delegate(string)

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

scaleFunction
Nullable!(double delegate(double))

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

Functions

autoopCallconst

Call the function with a value