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 -> ColorProvider

Active bindings

all_colors

(character) xxx

safe_colors

(character) xxx

Methods

Inherited methods


Method color_name()

color name

Usage

ColorProvider$color_name()


Method hex_from_name()

get color by name

Usage

ColorProvider$hex_from_name(name)

Arguments

name

color name

Returns

hex value


Method safe_color_name()

safe color name

Usage

ColorProvider$safe_color_name()


Method hex_color()

hex color

Usage

ColorProvider$hex_color()


Method safe_hex_color()

safe hex color

Usage

ColorProvider$safe_hex_color()


Method rgb_color()

RGB color

Usage

ColorProvider$rgb_color()


Method rgb_css_color()

RGB CSS color

Usage

ColorProvider$rgb_css_color()


Method clone()

The objects of this class are cloneable with this method.

Usage

ColorProvider$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.