A few bugs found while building on hand-drawn-canvas-animation (plus a fork with fixes)
Thanks for this skill, it's a great base. I built a fork with a review tool for agents, and it turned up a few things upstream:
-
verify.mjshangs.examples/workshop.html(from #1) never callsdefineFilm, sowindow.__readyis never set and the "all examples load" check times out after 60 s. Filtering the example list to files that containdefineFilm(fixes it. -
Grid thumbnails drop thin lines.
gridSheetdownscales 1920 to 240 in a singledrawImage, which skips pixels, so correct frames look broken on the contact sheet agents rely on. Halving repeatedly before the final draw fixes it. Same film, same frames, before and after:
-
moon-book.htmlframe 615 (25.6 s): the book's dark back page disappears in a single frame. -
held-once.htmlframe 40: the hedgehog redraw snaps in one frame. -
render.mjswaits out the full 60 s timeout on a page error instead of failing fast with the message.
The fork with these fixes and more (onion skins, a motion report, parallel renders, SVG-path cels) is at https://github.com/anzal1/hand-drawn-film under MIT, crediting you. Happy to send PRs for any of these if you'd like them upstream.
Sure! Send the PR!
Thanks! Sent it: #3. Four small commits (book cover pop in paper3d, verify skipping the workshop page, progressive downscale for grid thumbnails, render failing fast on page errors), each tested against the existing examples and the verify suite. Happy to adjust anything.