Blend two or more colors together
blend_colors(..., as.rgb = FALSE)
Two or more colors to blend together; these can be in a vector or standalone
Return in RGB form, otherwise return in hexadecimal form
The blended color in RGB form (1 x 3 matrix) or hexadecimal form
Other color_theory:
col2hex()
,
contrast-theory
,
text_color()
blend_colors('red', 'green')
#> [1] "#7F7F00FF"
if (requireNamespace('scales', quietly = TRUE)) {
scales::show_col(c('red', blend_colors('red', 'green'), 'green'), ncol = 3)
}