clr_extract_chroma | R Documentation |
Extract the hue, chroma, or luminance color components from a vector of colors.
clr_extract_chroma(col)
col |
A |
The range of the value are:
Hue is ranging from 0 to 360.
Luminance is ranging from 0 to 100.
Chroma, while dependent on hue and luminance, will roughly be within 0 and 180.
Use clr_extract()
if you are planning to extraction multiple components.
Numeric vector of values.
Other Extraction:
clr_extract()
,
clr_extract_hue()
,
extract_rgba()
clr_extract_hue(rainbow(100), "HCL")
clr_extract_chroma(rainbow(100))
clr_extract_luminance(rainbow(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.