darken: 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)
Value
A color value or vector of color values of length x (or, if length(x)==1, the length of add or abs)
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