Skip to contents

Add an animated mathematical function

Usage

anim_function(
  func,
  x_range = c(-5, 5),
  color = YELLOW,
  stroke_width = DEFAULT_STROKE_WIDTH,
  num_points = 200,
  ...
)

Arguments

func

Function(x) -> y

x_range

c(min, max) for x values

color

Curve color

stroke_width

Stroke width

num_points

Sampling resolution

...

Additional args

Value

A ManimLayer