r/adventofcode • u/Baking-and-books • 2d ago
Visualization What animation packages do you use?
I've done Advent of Code for the past few years and I'd like to try animating my solutions this time round. I've seen people over the years use a variety of animation software / packages to do their visualization, I'm curious for any specific reccs.
I usually use Python to code up my solutions and was considering learning Manim (the community version) or the base Matplotlib. I've also seen several people using TypeScript/JavaScript to animate. Open to any suggestions!
9
Upvotes
5
u/ednl 2d ago edited 1d ago
I made this for AoC 2017 day 14 using p5*js which is essentially just drawing lines and squares on a browser canvas: https://ednl.github.io/defrag/
Code: https://github.com/ednl/defrag/blob/main/sketch.js (EDIT: oops I left my actual input in, changed it to the example now) which was quite a lot of work, so yeah, maybe there are better packages. From the same people originally, there's https://processing.org which is the java version, standalone and compiled = a lot faster.
4
u/Enip0 2d ago
I have never used it but when I read Python I was going to suggest manim, until I read the next line where you mention it yourself.
I hadn't thought about animating solutions, but I love the idea, I might try it myself even.
4
u/buxxud 2d ago
For numerical visualization in python, I like plot.ly a lot. If you want sprites and graphics primitives, pygame is a natural choice.
My plan this year is actually to do every day in picotron, including dynamic state visualization. We'll see how it goes!
3
u/wizardeverybit 2d ago
I just used pygame to make animations
3
u/EverybodyCodes 1d ago
JavaScript
I have my own AnyMap class which can produce gifs based on... any map or grid. I just need to decide where to take the snapshot and how to map values to colours or text. Behind the scene it uses gif-encoder-2: https://github.com/benjaminadk/gif-encoder-2
I was even mentioned in the community showcase because of the speed :) https://www.reddit.com/r/adventofcode/comments/1prrvfn/introducing_your_2025_reddit_one_winners_and/
VisualizationRecord: 14 MinutesOther AoC visualisations:
https://www.reddit.com/r/adventofcode/comments/1pgd9ds/2025_day_7_part_2_visualization/
https://www.reddit.com/r/adventofcode/comments/1pcyjfs/2025_day_03_part_2/
https://www.reddit.com/r/adventofcode/comments/1hgv4pl/2024_day_18_visualisation_of_different_escape/
Also, one from the Codyssi event: https://www.reddit.com/r/codyssi/comments/1jlg247/journey_to_atlantis_patron_islands_path/
3
u/careyi4 2d ago
I am mostly writing lots of Rust these days, I vibed this up a while ago to help with visualisations for building https://systemscheck.dev puzzles. It ended up being pretty nice so I published it, from the download trends, it seems a few people have been using it, I find it meets my needs and I get some nice animations out of it. https://crates.io/crates/celluloid-core
Also, I am aware of the existing Python library of the same name, no connection, complete chance that they share a name as unbelievable as that may seem.
1
u/ffrkAnonymous 1d ago
In 2021 I used tic-80 to learn some Lua. There's python support but I've not tried it. And lots of other scripting languages.
https://www.reddit.com/r/adventofcode/comments/r66wgb/aoc_2021_adventure_time/hp2acll/?utm_source=reddit&utm_medium=usertext&utm_name=adventofcode&utm_content=t3_ro2v1c
1
u/agorism1337 23h ago
ffmpeg and Image Magick.
1
u/Synthetic5ou1 2d ago
I use r/php for AOC, but each year I try to visualise at least one day using r/pico8