View source: R/interactive_shade.R
interactive_shade | R Documentation |
Using image_shade of 'magick' interactively. azimuth and elevation are parameters of image_shade. See reference manual of 'magick' for detail.
interactive_shade(
image,
color = FALSE,
range_max_azimuth,
range_min_azimuth,
range_max_elevation,
range_min_elevation,
resolution = 0.1,
return_param = FALSE,
scale
)
image |
a magick image object |
color |
Set to true to shade the red, green, and blue components of the image |
range_max_azimuth |
define maximum in slider of azimuth |
range_min_azimuth |
define maximum in slider of azimuth |
range_max_elevation |
define maximum in slider of elevation |
range_min_elevation |
define maximum in slider of elevation |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns values of azimuth and elevation. 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 azimuth and elevation
Shota Ochi
if (interactive())
{
interactive_shade(wizard)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.