Skip to contents

Loads a pre-built animation template that can be customized and rendered.

Usage

use_template(template_name, ...)

Arguments

template_name

Name of the template

...

Additional arguments passed to the template

Value

A Template object that can be customized

Examples

if (FALSE) { # \dontrun{
use_template("theorem_proof") %>%
  set_theorem("Pythagorean Theorem", "a^2 + b^2 = c^2") %>%
  set_proof_steps(list(
    "Consider a right triangle...",
    "By similar triangles..."
  )) %>%
  render()
} # }