Create sRGB Colors
This function creates colors of class sRGB; a subclass of the virtual
color-class
class.
sRGB(R, G, B, names)
R, G, B |
these arguments give the red, green and blue intensities of the
colors (the values should lie between 0 and 1). The values can be provided
in separate |
names |
A vector of names for the colors (by default the row names of
|
This function creates colors in the standard sRGB color space (IEC standard 61966).
An object of class sRGB
which inherits from class color
.
Ross Ihaka
# Create a random set of colors set.seed(1) sRGB(R = runif(20), G = runif(20), B = runif(20))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.