Convert r,g,b,a values as string or numeric to hex
rgb2hex.Rd
Convert r,g,b,a values as string or numeric to hex
Arguments
- red
chr/num
Either a CSSrgb()
orrgba()
declaration as a string, or the red value as numeric.- alpha
lgl/num
Whether to include the alpha value (an 8 digit hex) in the output or not, or the alpha value to apply, If set to TRUE, and alpha is not set, an alpha value of 1 will be appended. If numeric, a value between 0 & 1 inclusive to set as the alpha value.
See also
rgb2hex_
Other color:
color_cycle()
,
color_distance()
,
color_luminance()
,
color_match()
,
color_rgb_table()
,
color_separate()
,
color_text_by_luminance()
,
colors2css()
,
css_col2vec()
,
luminance_filter()