This function creates colors of class ``polarLUV''; a subclass of the
virtual color-class
class.
polarLUV(L, C, H, names)
these arguments give the L, C and H coordinates of the colors.
The values can be provided in separate L
, C
and H
vectors or in a three-column matrix passed as L
.
A vector of names for the colors (by default the row names of
L
are used).
An object of class polarLUV
which inherits from class color
.
The polarLUV space is a transformation of the CIE
# NOT RUN {
## Show the polarLUV space
set.seed(1)
x <- RGB(runif(1000), runif(1000), runif(1000))
y <- as(x, "polarLUV")
head(x)
head(y)
plot(y)
# }
Run the code above in your browser using DataLab