R/tools.R
mix_color.Rd
Mix colors
mix_color(color1, color2 = NA, n = 5)
Color 1
Color 2
Number of different colors that should be generated
Vector of color-codes
mix_color("blue", n = 10) #> [1] "#D0D0FF" "#A2A2FF" "#7373FF" "#4545FF" "#1717FF" "#0000E7" "#0000B9" #> [8] "#00008B" "#00005C" "#00002E" mix_color("gold", "red", n = 4) #> [1] "#FFD700" "#FF8F00" "#FF4700" "#FF0000"