# simply mix/blend two colors
mix.cols.btw(c("red","brown"))
# simply mix/blend two colors, maximum number of colors at the end
mix.cols.btw(c("red","brown"), max = 8)
# simply mix/blend two colors with alpha=0.2 (opacity=0.2)
mix.cols.btw(c("yellow","green"),alpha = 0.2)
# also preview after mixing the two colors
mix.cols.btw(c("red","green"), preview = TRUE)
mix.cols.btw(c("blue","violet"),alpha = 0.2, preview = TRUE)
mix.cols.btw(c("red","purple","yellow","gray"), preview = TRUE)
mix.cols.btw(c("red","purple","yellow","gray"),alpha = 0.2, preview = TRUE)
Run the code above in your browser using DataLab