Darken or lighten colors by adding/subtracting to or hsv channel values
Darken or lighten colors by adding/subtracting to or hsv channel values
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
Returns
A color value or vector of color values of length x (or, if length(x)==1, the length of add or abs)