col2hcl | R Documentation |
Transforms rgb to hcl, sets non-missing arguments and then backtransforms to rgb.
col2hcl(colour, h = NULL, c = NULL, l = NULL, alpha = NULL)
colour |
character vector of colours to be modified |
h |
Hue, |
c |
Chroma, |
l |
Luminance, |
alpha |
Alpha, |
reds <- rep("red", 6)
show_col(col2hcl(reds, h = seq(0, 180, length = 6)))
show_col(col2hcl(reds, c = seq(0, 80, length = 6)))
show_col(col2hcl(reds, l = seq(0, 100, length = 6)))
show_col(col2hcl(reds, alpha = seq(0, 1, length = 6)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.