| border | R Documentation |
Adds a coloured border around selected frames. Wraps
magick::image_border.
border(images, color = "lightgray", geometry = "10x10", frames = NULL)
images |
an object of class |
color |
a character string specifying the border colour,
e.g. |
geometry |
a geometry string specifying border width and height,
e.g. |
frames |
integer vector of frame indices to duplicate. Defaults to
|
a magick-image object
After each operation a message listing the updated frame sequence is
printed in interactive sessions. Use
stopmotion_verbosity(FALSE) to suppress these messages, or set
options(stopmotion.verbose = FALSE) in your script or
‘.Rprofile’.
dino_dir <- system.file("extdata", package = "stopmotion")
images <- read(dir = dino_dir)
border(images = images, color = "black", geometry = "5x5")
border(images = images, color = "white", geometry = "10x10", frames = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.