Learn R Programming

charlatan (version 0.6.1)

ch_color: 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 colors()$allowed_locales() for locales supported. Affects the ch_color_name and ch_safe_color_name functions

See Also

ColorProvider

Examples

Run this code
ch_color_name()
ch_color_name(10)
# or even ch_color_name(500)

ch_safe_color_name()
ch_safe_color_name(10)

ch_hex_color()
ch_hex_color(10)
# or even 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")

Run the code above in your browser using DataLab