powered by
Define a list of colour names, which includes both colour names and a set of sRGB specifications corresponding to the names.
colourList(names, colours) colorList(names, colours)
A "colourList" object.
"colourList"
A character vector of colour names.
An "sRGB" colour object (which provides the sRGB specifications corresponding to the colour names).
"sRGB"
Paul Murrell
colourList("red", colorspace::RGB(1, 0, 0))
Run the code above in your browser using DataLab