View source: R/colorspace_helpers.R
| apply_color_matrix | R Documentation |
Apply a 3x3 color transform to an image
apply_color_matrix(img, M = diag(3))
img |
3/4-channel array (RGB/A). 2D (grey) or 2-channel (grey+alpha) pass through. |
M |
3x3 matrix. |
Array with transformed RGB; alpha preserved.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.