Debian Codegraph @

man/HLS.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/colorspace.R
3 \name{HLS}
4 \alias{HLS}
5 \title{Create HLS Colors}
6 \usage{
7 HLS(H, L, S, names)
8 }
9 \arguments{
10 \item{H, L, S}{These arguments give the hue, lightness, and saturation of the
11 colors. The values can be provided in separate \code{H}, \code{L} and
12 \code{S} vectors or in a three-column matrix passed as \code{H}.}
13
14 \item{names}{A vector of names for the colors (by default the row names of
15 \code{H} are used).}
16 }
17 \value{
18 An object of class \code{HLS} which inherits from class \code{color}.
19 }
20 \description{
21 This function creates colors of class HLS; a subclass of the virtual
22 \code{\link{color-class}} class.
23 }
24 \details{
25 This function creates colors in an HLS color space. The hues should
26 lie between between 0 and 360, and the lightness and saturations
27 should lie between 0 and 1.
28
29 HLS is a relative color space; it is a transformation of an RGB color
30 space. Conversion of HLS colors to any other color space must first
31 involve a conversion to a specific RGB color space, for example the
32 standard \code{\link{sRGB}} color space (IEC standard 61966).
33 }
34 \examples{
35 # A rainbow of full-intensity hues
36 HLS(seq(0, 360, length.out = 13)[-13], 0.5, 1)
37 }
38 \seealso{
39 \code{\link{sRGB}}, \code{\link{RGB}}, \code{\link{XYZ}}, \code{\link{LAB}},
40 \code{\link{polarLAB}}, \code{\link{LUV}}, \code{\link{polarLUV}}.
41 }
42 \author{
43 Ross Ihaka
44 }
45 \keyword{color}