Description Usage Arguments Value Examples
Get a pretty random color.
1 2 3 | randomColor(count = 1, hue = c(" ", "random", "red", "orange", "yellow",
"green", "blue", "purple", "pink", "monochrome"), luminosity = c(" ",
"random", "light", "bright", "dark"))
|
count |
number of colors (>= 1) |
hue |
The hue of the colors to be selected. |
luminosity |
The luminosity of the colors to be selected. |
A character vector of random color hexadecimal codes.
1 2 3 4 5 | randomColor()
randomColor(hue="pink")
randomColor(10, luminosity="light")
|
[1] "#36158c"
[1] "#db06a6"
[1] "#f7ce7b" "#75f9f3" "#f49fe9" "#b2ffdf" "#ffccf5" "#fff1b5" "#a1fcca"
[8] "#a9edf2" "#89ffdd" "#999ee8"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.