colourList: Define a list of colour names

Description Usage Arguments Value Author(s) Examples

View source: R/colourLists.R

Description

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

Usage

1
2

Arguments

names

A character vector of colour names.

colours

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

Value

A "colourList" object.

Author(s)

Paul Murrell

Examples

1
colourList("red", colorspace::RGB(1, 0, 0))

Example output

$names
[1] "red"

$colours
     R G B
[1,] 1 0 0

attr(,"class")
[1] "colourList"

roloc documentation built on May 1, 2019, 7:06 p.m.