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


r-lib/prettyunits documentation built on March 9, 2024, 5:03 p.m.