ColorProvider | R Documentation |
methods for colors
charlatan::BaseProvider
-> ColorProvider
locale
(character) xxx
all_colors
(character) xxx
safe_colors
(character) xxx
charlatan::BaseProvider$bothify()
charlatan::BaseProvider$check_locale()
charlatan::BaseProvider$lexify()
charlatan::BaseProvider$numerify()
charlatan::BaseProvider$random_digit()
charlatan::BaseProvider$random_digit_not_zero()
charlatan::BaseProvider$random_digit_not_zero_or_empty()
charlatan::BaseProvider$random_digit_or_empty()
charlatan::BaseProvider$random_element()
charlatan::BaseProvider$random_element_prob()
charlatan::BaseProvider$random_int()
charlatan::BaseProvider$random_letter()
charlatan::BaseProvider$randomize_nb_elements()
allowed_locales()
fetch the allowed locales for this provider
ColorProvider$allowed_locales()
new()
Create a new ColorProvider
object
ColorProvider$new(locale = NULL)
locale
(character) the locale to use. See
$allowed_locales()
for locales supported (default: en_US)
A new ColorProvider
object
color_name()
color name
ColorProvider$color_name()
safe_color_name()
safe color name
ColorProvider$safe_color_name()
hex_color()
hex color
ColorProvider$hex_color()
safe_hex_color()
safe hex color
ColorProvider$safe_hex_color()
rgb_color()
RGB color
ColorProvider$rgb_color()
rgb_css_color()
RGB CSS color
ColorProvider$rgb_css_color()
clone()
The objects of this class are cloneable with this method.
ColorProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.
x <- ColorProvider$new()
x$locale
x$color_name()
x$safe_color_name()
x$hex_color()
x$safe_hex_color()
x$rgb_color()
x$rgb_css_color()
x <- ColorProvider$new(locale = "uk_UA")
x$locale
x$color_name()
x$safe_color_name()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.