color.id: Identify closest match to a color

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/color.id.R

Description

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

Usage

1

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

1
 color.id("#cc00cc")

plotrix/plotrix documentation built on Jan. 23, 2020, 1:38 p.m.