Make colours transparent
make_transparent(col, opacity = 0.5)
col | Vector of colours |
---|---|
opacity | Vector of opacities |
make_transparent("red", seq(0, 1, length.out=6))#> [1] "#FF000000" "#FF000033" "#FF000066" "#FF000099" "#FF0000CC" "#FF0000FF"make_transparent(c("red", "blue"), .5)#> [1] "#FF000080" "#0000FF80"