Learning how to use Manim
Posted on
I've been meaning to learn how to create mathematical animations for a while. After watching 3blue1brown, and some really cool videos that were submitted for his Summer of Math Exposition event, I decided that I wanted to know how to use the python package that he created, called manim. And so I did, and created this very simple video talking about the pythagoras theorem:
Sample code:
I think it's really cool that aside from simple edits (like adding audio), the video is entirely generated by code. Here's a snippet of the code:
This part of the code is there to ensure that the labels of the sides of the triangle stick to the edges they are associated with, while also always maintaining the right orientation.
Fun fact:
When I was a freshman, me and some friends created an instagram page where we would post math memes. It actually grew quite the audience, but it has been inactive for a while now already. I thought this little snippet was the perfect little piece of content to post something on there again.