public auto namedColour(in string name)
Convert a name (string) into a Nullable!colour.
Internally calls std.experimental.colorFromString and names supported are therefore exactly the same. This inludes all the colors defined by X11, adopted by the W3C, SVG, and other popular libraries.
public ColourGradientFunction colourGradient(T)(
in ColourGradient!T cg,
bool absolute = false)
Function returning a colourgradient function based on a specified ColourGradient
Parameters
cg | A ColourGradient |
absolute | Whether the cg is an absolute scale or relative (between 0 and 1) |
Examples
auto cg = ColourGradient!HCY();
cg.put( 0, HCY(200, 0.5, 0) );
cg.put( 100, HCY(200, 0.5, 0) );
GGPlotD().put( colourGradient( cg ) );
public ColourGradientFunction colourGradient(T)(string name)
Function returning a named colourgradient.
Colours can be specified with colour names separated by dashes: "white-red" will result in a colourgradient from white to red. You can specify more than two colours "blue-white-red". "default" will result in the default (blueish) colourgradient.
Examples
GGPlotD().put( colourGradient( "blue-red" );
Deal with colour related struct/functions, such as ColourSpaces etc.
Aliases
ColourGradientFunction |
|
Functions
autonamedColour | Convert a name (string) into a Nullable!colour. | |
colourGradient | Function returning a colourgradient function based on a specified ColourGradient | |
colourGradient | Function returning a named colourgradient. |