methods for colors create color names, hex values, rgb values or css values.
See also
Other uk:
JobProvider_uk_UA
,
PhoneNumberProvider_uk_UA
,
ukrainian-language
Other UA:
JobProvider_uk_UA
,
PhoneNumberProvider_uk_UA
Super classes
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::ColorProvider
-> ColorProvider_uk_UA
Methods
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
charlatan::BareProvider$random_digit()
charlatan::BareProvider$random_digit_not_zero()
charlatan::BareProvider$random_digit_not_zero_or_empty()
charlatan::BareProvider$random_digit_or_empty()
charlatan::BareProvider$random_element()
charlatan::BareProvider$random_element_prob()
charlatan::BareProvider$random_int()
charlatan::BareProvider$random_letter()
charlatan::BareProvider$randomize_nb_elements()
charlatan::BaseProvider$allowed_locales()
charlatan::BaseProvider$check_locale()
charlatan::BaseProvider$initialize()
charlatan::BaseProvider$print()
charlatan::ColorProvider$color_name()
charlatan::ColorProvider$hex_color()
charlatan::ColorProvider$hex_from_name()
charlatan::ColorProvider$rgb_color()
charlatan::ColorProvider$rgb_css_color()
charlatan::ColorProvider$safe_color_name()
charlatan::ColorProvider$safe_hex_color()
Examples
x <- ColorProvider_uk_UA$new()
x$locale
#> [1] "uk_UA"
x$color_name()
#> [1] "Червоно-буро-помаранчевий"
x$safe_color_name()
#> [1] "Білий"
x$hex_color()
#> [1] "#D49514"
x$safe_hex_color()
#> [1] "#6699ff"
x$rgb_color()
#> [1] 141 27 83
x$rgb_css_color()
#> [1] "rgb(152, 253, 148)"
x$hex_from_name("Синій")
#> NULL