Learn R Programming

charlatan (version 0.6.1)

ColorProvider: ColorProvider

Description

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

Arguments

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.

See Also

Other ParentProviders: AddressProvider, CompanyProvider, InternetProvider, JobProvider, LoremProvider, PersonProvider, PhoneNumberProvider, TaxonomyProvider, UserAgentProvider