File: color.id.Rd

package info (click to toggle)
r-cran-plotrix 2.9-3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 960 kB
  • sloc: makefile: 3
file content (25 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\name{color.id}
\alias{color.id}
\title{Identify closest match to a color}
\description{
 Given a color given as a hex string, find the closest match in the
 table of known (named) colors
}
\usage{
 color.id(col)
}
\arguments{
 \item{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{Ben Bolker}
\seealso{\link{col2rgb},\link{colors}}
\examples{
 color.id("#cc00cc")
}
\keyword{color}