SuperRainbow | R Documentation |
Presumably an improved rainbow color generator
SuperRainbow(
n,
mod = c("-+", "++", "+-"),
s.rng = c(0.6, 1),
l.rng = c(0.7, 1),
f = "hsv",
alpha = 1
)
n |
number of colors. |
mod |
cyclic modulation pattern, a character vector, for instance c("+-", "-+"). |
s.rng |
range of modulated chroma/saturation values. |
l.rng |
range of modulated luminance values. |
f |
"hsv" or "hcl". |
alpha |
transparency value (default = 1). See alpha argument in function hcl. |
SuperRainbow
returns a character vector of RGBA colors in hexadecimal.
DefineColorMap, MakeColors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.