vibrant_color_by_hue | R Documentation |
Get vibrant reference color for a given HCL color hue
vibrant_color_by_hue(h, C = 60, S = 100, L = 50)
h |
|
C , S , L |
|
... |
additional arguments are ignored. |
This function converts each h
HCL hue to a hex color using
jamba::hcl2col()
. This hex color is converted to HSL color
space using jamba::col2hsl()
, so the color saturation and
lightness can be adjusted to full saturation without
going outside the HCL color gamut. This HSL color is converted
back to hex color format.
The reason for the two-step conversion is to honor the HCL color hue, which is not the same numeric value as used by the HSL color space.
character
vector of colors for each hue h
.
Other colorjam assignment:
col_div_xf()
,
col_linear_xf()
,
group2colors()
,
matrix2heatColors()
,
rainbowJamMulti()
,
vals2colorLevels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.