ch_color {charlatan}R Documentation

Create fake colors

Description

Create fake colors

Usage

ch_color_name(n = 1, locale = NULL)

ch_safe_color_name(n = 1, locale = NULL)

ch_hex_color(n = 1)

ch_safe_hex_color(n = 1)

ch_rgb_color(n = 1)

ch_rgb_css_color(n = 1)

Arguments

n

(integer) number of things to get, any non-negative integer

locale

(character) the locale to use. See ColorProvider$new()$allowed_locales() for locales supported. Affects the ch_color_name and ch_safe_color_name functions

See Also

ColorProvider

Examples

ch_color_name()
ch_color_name(10)
ch_color_name(500)

ch_safe_color_name()
ch_safe_color_name(10)

ch_hex_color()
ch_hex_color(10)
ch_hex_color(1000)

ch_safe_hex_color()
ch_safe_hex_color(10)

ch_rgb_color()
ch_rgb_color(10)

ch_rgb_css_color()
ch_rgb_css_color(10)

ch_color_name(locale = "uk_UA")
ch_color_name(n = 10, locale = "uk_UA")

ch_safe_color_name(locale = "uk_UA")
ch_safe_color_name(n = 10, locale = "uk_UA")

[Package charlatan version 0.5.1 Index]