colourGradient

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.

  1. ColourGradientFunction colourGradient(ColourGradient!T cg, bool absolute)
  2. ColourGradientFunction colourGradient(string name)
    colourGradient
    (
    T
    )
    (
    string name
    )

Examples

GGPlotD().put( colourGradient( "blue-red" );

Meta