View source: R/render_vibrance.R
| render_vibrance | R Documentation |
Adjusts image vibrance (adaptive saturation), similar in spirit to the iPhone "Vibrance" control: it boosts muted colors more than already-saturated colors, and reduces saturation more strongly in already-saturated regions when negative. Works on HDR arrays as well (values can exceed 1).
render_vibrance(
image,
vibrance = 0,
protect_luminance = 0.25,
filename = NULL,
preview = FALSE
)
image |
Image filename, 3-layer RGB array, 4-layer RGBA array, or matrix. If a filename,
it will be read via |
vibrance |
Default |
protect_luminance |
Default |
filename |
Default |
preview |
Default |
4-layer RGBA array (or matrix if passed a matrix and ray_read_image() is not used).
dragon |>
render_vibrance(vibrance = 0.4, preview = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.