Description Usage Arguments Details Value See Also Examples
Functions to map vectors/matrices/arrays of colors between color spaces.
THESE FUNCTIONS REQUIRE THE colorspace PACKAGE TO BE INSTALLED AND LOADED.
One exception to this requirement is mapping numeric values to strings, if the "from" color space equals the "to" color space.
1 2 3 4 |
colv |
A numeric array with two or more dimensions. |
x, y, z, alpha |
Numeric vectors. |
as.list, as.string |
Logical, if true, return a list or string, see value section. |
from |
String, the input color space. |
to |
String, the output color space. |
correction |
Logical, correct the sRGB values. |
... |
Ignored. |
The functions wrap functions from the colorspace package.
The to and from arguments, use names of color spaces from the colorspace package.
This includes:
"XYZ", "RGB", "sRGB", "LAB", "polarLAB", "HSV", "HLS", "LUV" and "polarLUV".
In addition to HCL, with is the same as polarLUV, but the the arguments in a different order.
The same labels are used for three channel and four channel images.
By default, these functions return arrays.
Where the last dimension corresponds to channel.
If as.string is true, a character vector/matrix/array is returned.
If as.list is true, a list is returned, with one element per channel.
standardize.cols
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.