colourList: Define a list of colour names

View source: R/colourLists.R

colourListR Documentation

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)

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

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

roloc documentation built on May 29, 2024, 1:25 a.m.