While Claude was very helpful through this iterative process, I eventually realized there was a serious issue with the
color interpretation process early in the pipeline stemming from PNG color profiles somehow corrupted by my processing.
Additionally, the code had become total spaghetti, there were hardcoded ideas about gamma correction, and the code was
littered with the detritus of past failed experiments. I started from scratch, and built in programmatic checks at each step
that the colors being generated matched (or were close to) the raw colors sampled from the image, using a different approach
to image encoding and sampling, and only using HSL colors throughout, rather than doing conversions back and forth (which,
it turned out were another source of lossy colors). You can see the compounded color errors most clearly in frames like this
one, where the blues on the left have hues of ~219, and the blues on the right have hues closer to 201. Huge differences!