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_en_US

Examples

x <- ColorProvider_en_US$new()
x$locale
#> [1] "en_US"
x$color_name()
#> [1] "MidnightBlue"
x$safe_color_name()
#> [1] "lime"
x$hex_color()
#> [1] "#E1D344"
x$safe_hex_color()
#> [1] "#ff9999"
x$rgb_color()
#> [1]  22 236  51
x$rgb_css_color()
#> [1] "rgb(147, 3, 82)"