animate_pacman: Create a Pac-Man Game GIF

Description Usage Arguments Value Examples

View source: R/animate_pacman.R

Description

Create a Pac-Man Game GIF

Usage

1
2
3
4
5
6
7
animate_pacman(
  pacman,
  ghosts,
  file = NULL,
  caption = iconv("© Mickaël 'Coeos' Canouil", "UTF-8"),
  font_family = ""
)

Arguments

pacman

A data.frame with the coordinates of Pac-Man moves.

ghosts

A listof data.frame with the coordinates of (each) Ghost moves.

file

File name to save GIF on disk.

caption

A caption to add below the GIF.

font_family

The font family to use for the caption.

Value

Returns a gif_image object. See gganimate::gifski_renderer.

Examples

1
2
3
4

ggpacman documentation built on July 1, 2020, 11:11 p.m.