darken {paleoDiv}R Documentation

Darken or lighten colors by adding/subtracting to or hsv channel values

Description

Darken or lighten colors by adding/subtracting to or hsv channel values

Usage

darken(x, add = 0, abs = NULL)

Arguments

x

Color value or vector of colors

add

Value to be added to the third hsv-channel. Can be a vector of length x, or a vector of any length if length(x)==1

abs

Value to substitute for the third hsv-channel. If set, this overrides the setting for parameter add. Can be a vector of length x, or a vector of any length if length(x)==1

Value

A color value or vector of color values of length x (or, if length(x)==1, the length of add or abs)

Examples

darken(ggcol(3),abs=0.5)

[Package paleoDiv version 0.3.0 Index]