Get vibrant reference color for a given HCL color hue
Source:R/colorjam-presets.R
vibrant_color_by_hue.Rd
Get vibrant reference color for a given HCL color hue
Details
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.
See also
Other colorjam assignment:
col_div_xf()
,
col_linear_xf()
,
group2colors()
,
matrix2heatColors()
,
rainbowJamMulti()
,
vals2colorLevels()