1% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/colorspace.R
3\name{readRGB}
4\alias{readRGB}
5\title{Read RGB Color Descriptions}
6\usage{
7readRGB(file, class = "RGB")
8}
9\arguments{
10\item{file}{The file containing the color descriptions.}
11
12\item{class}{The kind of color object to be returned.}
13}
14\value{
15An color object of the specified class containing the color
16descriptions.
17}
18\description{
19This function reads a set of RGB color descriptions (of the form written by
20\code{gcolorsel}) from a file and creates a color object containing the
21corresponding colors.
22}
23\details{
24The file is assumed to contain RGB color descriptions consisting of three
25integer values in the range from 0 to 255 followed by a color name.
26}
27\examples{
28\dontrun{
29rgb <- readRGB("pastel.rgb")
30hsv <- readRGB("pastel.rgb", "HSV")
31}
32}
33\seealso{
34\code{\link{writehex}}, \code{\link{readhex}},
35\code{\link{hex2RGB}}, \code{\link{RGB}}, \code{\link{HSV}},
36\code{\link{XYZ}}, \code{\link{LAB}}, \code{\link{polarLAB}},
37\code{\link{LUV}}, \code{\link{polarLUV}}.
38}
39\author{
40Ross Ihaka
41}
42\keyword{color}
43