animate_gol: animate_gol

Description Usage Arguments Value Author(s)

View source: R/animate_gol.R

Description

Animates a gameRlife object.

Usage

1
animate_gol(gol, from = NULL, to = NULL)

Arguments

gol

An object of class gameRlife as produced by gameRlife::game_of_life.

from

An integer specifying the generation to start at. If NULL (default) start at generation 0.

to

An integer specifying the generation to run to. If NULL (default) run until the last generation.

Value

A GIF animation to be viewed in the RStudio Viewer tab.

Author(s)

Alex Kalinka, alex.t.kalinka@gmail.com


alextkalinka/gameRlife documentation built on Jan. 4, 2022, 12:02 a.m.