Learn R Programming

prettyunits (version 1.2.0)

pretty_color: Color definition (like RGB) to a name

Description

Color definition (like RGB) to a name

Usage

pretty_color(color)

pretty_colour(color)

Value

A character string that is the closest named colors to the input color. The output will have an attribute of alternate color names (named "alt").

Arguments

color

A scalar color that is usable as an input to col2rgb() (assumed to be in the sRGB color space).