ggboy_gif: Create a ggboy animated gif

View source: R/ggboy-gif.R

ggboy_gifR Documentation

Create a ggboy animated gif

Description

Create a ggboy animated gif

Usage

ggboy_gif(
  gif,
  width = 160,
  height = 144,
  scale = 1,
  fps = 5,
  delay = NULL,
  frame_data = NULL,
  first_n = NULL,
  ...
)

Arguments

gif

File path or URL of GIF

width

output width (default 160 * scale)

height

output height (default 144 * scale)

scale

multiplicative scaling factor for width and height (default = 1)

fps

frames per second. Ignored if delay is not NULL

delay

delay after each frame, in 1/100 seconds. Must be length 1, or number of frames. If specified, then fps is ignored.

frame_data

a dataframe of x, y and z values as returned by image_to_frame() (default = NULL)

first_n

only use frames 1:first_n of the gif. Useful for testing settings on a smaller subset of the gif

...

named arguments passed on to ggboy()


cj-holmes/ggboy documentation built on Sept. 17, 2024, 8:09 a.m.