# \donttest{
multi_colour()
multi_colour("ahoy")
multi_colour(
"taste the rainbow",
c("rainbow", "cyan", "cyan", "rainbow")
)
multi_colour(
"taste the rainbow",
c(
"mediumpurple",
"rainbow",
"cyan3"
)
)
multi_colour(colours = c(
rgb(0.1, 0.2, 0.5),
"yellow",
rgb(0.2, 0.9, 0.1)
))
multi_colour(
things$buffalo,
c("mediumorchid4", "dodgerblue1", "lemonchiffon1")
)
# Built-in colour palette
multi_colour(things$cow, colours = palettes$lacroix)
multi_color(cowsay::animals[[sample(1:length(cowsay::animals), 1)]], sample(colours(), 10))
# Mystery Bulgarian animal
multi_colour(things[[sample(length(things), 1)]],
c("white", "darkgreen", "darkred"),
direction = "horizontal"
)
# Mystery Italian animal
multi_colour(things[[sample(length(things), 1)]],
c("darkgreen", "white", "darkred"),
direction = "vertical"
)
# }
Run the code above in your browser using DataLab