Skip to content

Manim is an engine for precise programmatic animations, designed for creating explanatory math videos with R.

License

Notifications You must be signed in to change notification settings

munoztd0/MathAnimatoR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathAnimatoR

Manim is an engine for precise programmatic animations, designed for creating explanatory math videos with R.


library(MathAnimatoR)

scene <- init_scene()

mCircle <- circle()
mSquare <- square() # create a square

pink <- "#D147BD"

anim1 <- mSquare |>
            flip(direction=LEFT) |>
            rotate(pi / 4) |> # rotate a certain amount
            display()

anim2 <- mSquare|>
            transmute( mCircle |> set_fill(pink, opacity=0.5) ) # interpolate the square into the circle

anim3 <- mSquare |>
            fadeout() #fade out animation


play(scene, anim1)

play(scene, anim2)

play(scene, anim3)


scene |> render()


Scene.mp4

About

Manim is an engine for precise programmatic animations, designed for creating explanatory math videos with R.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published