mm_mute_cols {moRphomenses} | R Documentation |
Take a color and modify it
Description
Modify color/transparency using hsv syntax
Usage
mm_mute_cols(cols, s = NULL, v = NULL, alpha = 0.4)
Arguments
cols |
a vector of colors, eg: "#0066FF" |
s |
Either a single value or a vector of same length as cols specifying a new saturation (range 0-1). colors darken to black (0). |
v |
Either a single value or a vector of same length as cols specifying a new value (range 0-1). colors lighten to white (0) |
alpha |
Either a single value or a vector of same length as cols specifying a transparency value (range 0-1). colors translucent at 0. |
Value
A vector of colors that have been modified in saturation, value, or alpha
[Package moRphomenses version 1.0.2 Index]