col.shade: Shade an RGB color

Description Usage Arguments Details Author(s) References Examples

View source: R/colorfunctions.R

Description

Shades an RBG color

Usage

1
col.shade(col, shade = 0.5)

Arguments

col

a vector of RGB color(s)

shade

numeric value between 0 and 1. Zero means no change and 1 results in black

Details

This function shades an RGB color and returns the shaded RGB color (with alpha channel added)

Author(s)

Claus Ekstrom [email protected]

References

Ekstrom, CT (2011) The R Primer.

Examples

1
newcol <- col.shade("blue")

MESS documentation built on May 29, 2017, 2:39 p.m.