pretty_color: Color definition (like RGB) to a name

View source: R/color.R

pretty_colorR Documentation

Color definition (like RGB) to a name

Description

Color definition (like RGB) to a name

Usage

pretty_color(color)

pretty_colour(color)

Arguments

color

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

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").


prettyunits documentation built on Sept. 25, 2023, 1:07 a.m.