Learn R Programming

stopmotion (version 0.1.0)

background: Set the background colour of images

Description

Set the background colour of images

Usage

background(images, color = "white", frames = NULL)

Value

a magick-image object

Arguments

images

an object of class magick-image to modify

color

a character string specifying a colour, e.g. "white" or "#FF0000".

frames

integer vector of frame indices to duplicate. Defaults to NULL, which duplicates all frames.

Verbosity

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.

Examples

Run this code
# \donttest{
  dino_dir <- system.file("extdata", package = "stopmotion")
  images <- read(dir = dino_dir)
  background(images = images, color = "white")
  background(images = images, color = "white", frames = 1)
# }

Run the code above in your browser using DataLab