methods for colors create color names, hex values, rgb values or css values.
A ColorProvider object that can generate colors.
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::ColorProvider
-> ColorProvider_en_US
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()
clone()
The objects of this class are cloneable with this method.
ColorProvider_en_US$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other en:
AddressProvider_en_GB
,
AddressProvider_en_NZ
,
AddressProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
FileProvider_en_US
,
InternetProvider_en_AU
,
InternetProvider_en_US
,
JobProvider_en_US
,
LoremProvider_en_US
,
PersonProvider_en_GB
,
PersonProvider_en_NZ
,
PersonProvider_en_US
,
PhoneNumberProvider_en_AU
,
PhoneNumberProvider_en_CA
,
PhoneNumberProvider_en_GB
,
PhoneNumberProvider_en_NZ
,
PhoneNumberProvider_en_US
,
PhoneNumberProvider_es_MX
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
,
english-language
Other US:
AddressProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
FileProvider_en_US
,
InternetProvider_en_US
,
JobProvider_en_US
,
LoremProvider_en_US
,
PersonProvider_en_US
,
PhoneNumberProvider_en_US
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
x <- ColorProvider_en_US$new()
x$locale
x$color_name()
x$safe_color_name()
x$hex_color()
x$safe_hex_color()
x$rgb_color()
x$rgb_css_color()
Run the code above in your browser using DataLab