Produces an interpolation of two colours.
col_mix(a, b, amount = 0.5, space = "rgb")
A character vector of colours.
Other colour manipulation:
alpha()
,
col2hcl()
,
colour_manip
,
muted()
col_mix("blue", "red") # purple
#> [1] "#800080FF"
col_mix("blue", "red", amount = 1) # red
#> [1] "#FF0000FF"
col_mix("blue", "red", amount = 0) # blue
#> [1] "#0000FFFF"
# Not recommended:
col_mix("blue", "red", space = "hcl") # green!
#> [1] "#008800FF"