| render_clamp | R Documentation |
Clamps an image to a user-specified range, ignoring the alpha channel.
render_clamp(
image,
min_value = 0,
max_value = 1,
filename = NA,
preview = FALSE,
...
)
image |
3-layer RGB/4-layer RGBA array, |
min_value |
Default |
max_value |
Default |
filename |
Default |
preview |
Default |
... |
Arguments to pass to either |
A rayimg RGBA array.
#The image of the unchanged image
range(dragon)
#Clamp the maximum and minimum values to one and zero
render_clamp(dragon) |>
range()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.