View source: R/interactive_modulate.R
interactive_modulate | R Documentation |
Using image_modulate of 'magick' interactively. brightness and saturation and hue are parameters of image_modulate. See reference manual of 'magick' for detail.
interactive_modulate(
image,
range_max_brightness = 200,
range_max_saturation = 200,
range_max_hue = 200,
resolution = 0.1,
return_param = FALSE,
scale
)
image |
a magick image object |
range_max_brightness |
define maximum in slider of brightness. must be positive. |
range_max_saturation |
define maximum in slider of saturation. must be positive. |
range_max_hue |
define maximum in slider of hue. must be positive. |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns values of brightness and saturation and hue. If return_param is FALSE, returns a magick image object. |
scale |
geometry to be passed to image_scale function of magick package. image is scaled just for preview and result image is not scaled if scale is given. |
a magick image object or values of brightness, saturation, and hue
Shota Ochi
if (interactive())
{
interactive_modulate(wizard)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.