Debian Codegraph @

man/readhex.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/colorspace.R
3 \name{readhex}
4 \alias{readhex}
5 \title{Read Hexadecimal Color Descriptions}
6 \usage{
7 readhex(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 hexadecimal color descriptions from a file and
20 creates a color object containing the corresponding colors.
21 }
22 \details{
23 The file is assumed to contain hexadecimal color descriptions of the form
24 \code{#RRGGBB}.
25 }
26 \examples{
27 \dontrun{
28 rgb <- readhex("pastel.txt")
29 hsv <- readhex("pastel.txt", "HSV")
30 }
31 }
32 \seealso{
33 \code{\link{writehex}}, \code{\link{readRGB}},
34 \code{\link{hex2RGB}}, \code{\link{RGB}}, \code{\link{HSV}},
35 \code{\link{XYZ}}, \code{\link{LAB}}, \code{\link{polarLAB}},
36 \code{\link{LUV}}, \code{\link{polarLUV}},
37 }
38 \author{
39 Ross Ihaka
40 }
41 \keyword{color}