color.id: Identify closest match to a color

View source: R/color.id.R

color.idR Documentation

Identify closest match to a color

Description

Given a color specified as a hex string, find the closest match in the table of known (named) colors

Usage

 color.id(col)

Arguments

col

a color specified as a hex string

Details

finds the color with the minimum squared distance in RGB space

Value

the name of the closest match

Author(s)

Ben Bolker

See Also

col2rgb,colors

Examples

 color.id("#cc00cc")

plotrix/plotrix documentation built on Feb. 19, 2024, 8:16 a.m.