Skip to contents

methods for colors create color names, hex values, rgb values or css values.

Value

A ColorProvider object that can generate colors.

Super classes

charlatan::BareProvider -> charlatan::BaseProvider -> charlatan::ColorProvider -> ColorProvider_uk_UA

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