Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yzhong52/ratelimitinganimations
https://medium.com/p/6114e5df3f3d
https://github.com/yzhong52/ratelimitinganimations
Last synced: 2 days ago
JSON representation
https://medium.com/p/6114e5df3f3d
- Host: GitHub
- URL: https://github.com/yzhong52/ratelimitinganimations
- Owner: yzhong52
- Created: 2022-02-26T20:44:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T12:25:00.000Z (over 2 years ago)
- Last Synced: 2023-08-05T01:02:28.226Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rate Limiting Animations
Rate limiting animations with [Manim](https://github.com/ManimCommunity/manim/).
## Environment
Be aware that there are some system dependencies. See [Manim doc](https://docs.manim.community/en/stable/installation.html) for more details.
Python environment is managed by [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) here.Create the environment from the `environment.yml` file:
```shell
conda env create -f environment.yml
```Export/save environment:
```shell
conda env export | grep -v "^prefix: " > environment.yml
```## Rendering
Render videos:
```shell
manim -pql rate_limit_scenes.py FixWindowScene
manim -pql rate_limit_scenes.py SlidingLogScene
manim -pql rate_limit_scenes.py TokenBucketScene
manim -pql rate_limit_scenes.py TokenBucketSceneProlonged
```Add `--format=gif` to export gif format, i.e.:
```
manim -pql rate_limit_scenes.py FixWindowScene --format=gif
```