Skip to contents

Converts a rendered animation (GIF or frames) into an htmlwidget that can be embedded in Shiny apps, R Markdown documents, and Jupyter notebooks.

Usage

manim_widget(
  scene,
  width = "100%",
  height = "400px",
  fps = 30,
  controls = TRUE,
  loop = TRUE,
  autoplay = TRUE
)

Arguments

scene

A Scene object (will be rendered to GIF)

width

Widget width

height

Widget height

fps

Playback FPS

controls

Show play/pause controls

loop

Loop the animation

autoplay

Start playing automatically

Value

An htmlwidget object