Debian Codegraph @

man/readRGB.Rd

raw
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{
7 readRGB(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{
15 An color object of the specified class containing the color
16 descriptions.
17 }
18 \description{
19 This 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
21 corresponding colors.
22 }
23 \details{
24 The file is assumed to contain RGB color descriptions consisting of three
25 integer values in the range from 0 to 255 followed by a color name.
26 }
27 \examples{
28 \dontrun{
29 rgb <- readRGB("pastel.rgb")
30 hsv <- 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{
40 Ross Ihaka
41 }
42 \keyword{color}