lab_to_rgb | R Documentation |
Convert from Lab space into RGB colour channels.
lab_to_rgb(lab, transformation = "sRGB", linear_func = NULL)
lab |
A dataframe or matrix with L, a and b colour channels located in the columns 1 to 3, respectively. |
transformation |
An option in |
linear_func |
A function to convert RGB colour space into non-linear 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.
red <- sample(x = 1:255, size = 10, replace = TRUE)
green <- sample(x = 1:255, size = 10, replace = TRUE)
blue <- sample(x = 1:255, size = 10, replace = TRUE)
lab_to_rgb(rgb_to_lab(data.frame(r = red, g = green, b = blue)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.