Skip to contents

Transform one object into another

Usage

transform_to(scene, to, duration = 1, easing = "smooth", path_arc = 0)

Arguments

scene

A Scene object

to

Target LaTeX expression, text string, or MObject

duration

Duration in seconds

easing

Easing function

path_arc

Arc of the transformation path in radians

Value

The Scene object (invisibly) for piping

Examples

if (FALSE) { # \dontrun{
scene("transform_demo") %>%
  add_latex("(a+b)^2") %>%
  write_in() %>%
  pause(1) %>%
  transform_to("a^2 + 2ab + b^2", duration = 2) %>%
  render()
} # }