properties: Query or change colour properties

Description Usage Arguments Value Author(s) Examples

Description

These functions obtain the value of a colour property, or modify it. They will convert between colour spaces as required, but the RGB representation will be appropriately updated in the result.

Usage

1
2
3
4
5
saturation(shades, values = NULL)

brightness(shades, values = NULL)

hueshift(shades, angles = 0)

Arguments

shades

One or more colours, in any suitable form (see shade).

values

New values for the property in question. If NULL, the current value(s) will be returned.

angles

For hueshift, the angles (in degrees) by which to rotate the colour hues.

Value

Current colour property values, or new colours of class "shade".

Author(s)

Jon Clayden <code@clayden.org>

Examples

1
2
saturation(c("papayawhip","lavenderblush","olivedrab"))
saturation("papayawhip", 0.7)

shades documentation built on May 30, 2017, 1:46 a.m.

Search within the shades package
Search all R packages, documentation and source code