This entire series contains major spoilers for Advent of Code 2019 day 20.
I reached the point in the Manim tutorials where I needed LaTeX installed. It took me a few minutes to realize that was the issue and it wasn't simply going to be something I could install via conda, so I moved on. Conveniently, the next example showed how to construct a line from multiple segments, and I created a test spiral of line segments around the origin.
I had the idea that I'd animate the drawing of these multi-segment lines, and although it took me a while to find it, Manim's Create
function does this. However, for most of my visualization, I should expect to have the entire multi-segment line pop in and out all at once. My solution popped over 21k states from the priority queue, and even if each of those states gets just one frame, at 60 fps it would take six minutes to display them all. I may slowly display the first several states and last several states, but the 21k in the middle will be some kind of blur. Let's say I let the blur last 15 seconds, at 30 fps. Each frame would represent about 50 states. So I'd need to decide how to present 50 states with a single image. Perhaps the "active" / last state would have its entire path highlighted, and the rest would have their last [multi-segment line] step and endpoint highlighted with some low opacity.
Top comments (0)