Skip to contents

Animation that calls a function(mobject, alpha) each frame, where alpha is the current progress.

Super class

manimR::Animation -> UpdateFromAlphaFunc

Public fields

update_func

Function(mobject, alpha) called each frame

Methods

Inherited methods


Method new()

Create an UpdateFromAlphaFunc animation

Usage

UpdateFromAlphaFunc$new(
  mobject,
  update_func,
  run_time = 1,
  rate_func = "linear",
  ...
)

Arguments

mobject

Mobject to update

update_func

Function(mobject, alpha) that modifies the mobject

run_time

Duration

rate_func

Easing

...

Additional args


Method interpolate_mobject()

Call update function with alpha

Usage

UpdateFromAlphaFunc$interpolate_mobject(alpha)

Arguments

alpha

Eased progress


Method clone()

The objects of this class are cloneable with this method.

Usage

UpdateFromAlphaFunc$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.