Function returning a colourgradient function based on a specified ColourGradient
Function returning a named colourgradient.
Returns an associative array with names as key and colours as values
Converts any type into a double string pair, which is used by colour maps