Learn R Programming

roloc (version 0.1-2)

colourList: Define a list of colour names

Description

Define a list of colour names, which includes both colour names and a set of sRGB specifications corresponding to the names.

Usage

colourList(names, colours)
colorList(names, colours)

Value

A "colourList" object.

Arguments

names

A character vector of colour names.

colours

An "sRGB" colour object (which provides the sRGB specifications corresponding to the colour names).

Author

Paul Murrell

Examples

Run this code
colourList("red", colorspace::RGB(1, 0, 0))

Run the code above in your browser using DataLab