Skip to content

Instantly share code, notes, and snippets.

View dashmage's full-sized avatar
🛠️

Ashley James dashmage

🛠️
View GitHub Profile
@dashmage
dashmage / scene.py
Last active August 23, 2024 05:26
Knuth/ Fisher-Yates Shuffle Animation
"""
Knuth/ Fisher-Yates shuffle algorithm visualized with the manim library.
Install manim (preferably in a virtual environment),
$ pip install manim
Generate the animation play the resulting mp4 file,
$ manim -pql scene.py KnuthShuffle
To generate a higher quality animation once you're done testing the code (takes more time to execute),