xyz_to_rgb | R Documentation |
Convert from RGB colour channels to XYZ space.
xyz_to_rgb(xyz, transformation = "sRGB", linear_func = NULL)
xyz |
A dataframe or matrix with X, Y and Z colour channels located in the columns 1 to 3, respectively. |
transformation |
An option in |
linear_func |
A function to convert linear RGB colour space into RGB space. Used only if a custom transformation matrix is provided. Transformation skips if no function is provided under a user-defined transformation matrix. See: https://en.wikipedia.org/wiki/SRGB. |
A tibble
of red, green and blue colour channels.
x <- sample(x = 40:60, size = 10, replace = TRUE)
y <- sample(x = 40:60, size = 10, replace = TRUE)
z <- sample(x = 40:60, size = 10, replace = TRUE)
xyz_to_rgb(data.frame(x = x, y = y, z = z))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.