View source: R/utils_css_color.R
| color_luminance | R Documentation | 
Find the luminance of a particular color, scaled 0-1
color_luminance(red, green, blue, alpha, ...)
red, blue, green, alpha | 
 numeric vectors with values in   | 
... | 
 additional arguments
See   | 
num
color_text_by_luminance()
Other color: 
color_cycle(),
color_distance(),
color_match(),
color_rgb_table(),
color_separate(),
color_text_by_luminance(),
colors2css(),
css_col2vec(),
luminance_filter(),
rgb2hex()
rlang::exec(color_luminance, !!!css_col2vec('white'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.