Commit Graph
215 Commits
Author SHA1 Message Date
Tanish Manku 34fe4603e7 feat(engine): add, delete and convert motion path points, move the whole path (M2)
motion.add_point splits the nearest segment (shape and timing
unchanged), motion.delete_points refits through the rest and keeps the
ends, motion.convert_point makes an anchor smooth or a corner, and
motion.move_path moves the path, its X/Y keys and the object together.
Point edits on a straight motion make its path the tween's own.
motion.info and the path commands list the anchors.
2026-11-09 23:37:16 -07:00
Tanish Manku 6f9d1a2f0e feat(geom): shape-keeping anchor deletion and moving a whole motion (M2)
Path::merge_at replaces the two segments around an anchor with the one
cubic that fits them best (Schneider's least squares on handle lengths,
seeded by the de Casteljau ratio, so deleting a split point gives the
curve back). MotionTween::translate moves the path and every X/Y key.
2026-11-09 23:33:25 -07:00
Tanish Manku 1a7c6521e8 Merge pull request #97 from storytold/m8/web-build
feat(web): web build of the editor, first slice (M8)
2026-11-09 23:27:09 -07:00
Tanish Manku a87728ba50 chore: merge main (eraser, eyedropper, XFL corpus) into the web build (M8) 2026-11-09 23:15:49 -07:00
Tanish Manku 9a04394f3b Merge pull request #95 from storytold/m4/xfl-corpus
test(xfl): a self-authored XFL corpus with golden render tests (M4)
2026-11-09 23:13:57 -07:00
Tanish Manku 2cf35d83d8 chore: merge main (eraser, eyedropper) into the XFL corpus (M4) 2026-11-09 23:02:33 -07:00
Tanish Manku 680243e664 Merge pull request #96 from storytold/m7/eraser-eyedropper
feat(draw): Eraser and Eyedropper tools (M7)
2026-11-09 23:01:34 -07:00
Tanish Manku 431266a897 docs: web build ADR 0036, docs/web.md, roadmap, changelog, architecture and compliance (M8) 2026-11-09 22:38:01 -07:00
Tanish Manku b6d935c543 ci: build every crate for wasm32, run the engine's WebAssembly tests in Node, build the web bundle (M8) 2026-11-09 22:38:01 -07:00
Tanish Manku 7dcd01041e feat(shell): web build of the editor: browser entry, file picker and downloads, autosave to browser storage (M8)
src/web.rs starts the editor on a page canvas with eframe's WebRunner (WebGL2 via glow) and
provides the browser's services; platform.rs decides when: picked files go to the engine's
in-memory store and the command runs, saves and exports leave as downloads, preferences and
recovery copies live in localStorage, Web Locks tell open tabs from crashed ones, and leaving
with unsaved work asks first. The GPU stage and sound output become build cfgs that are off
on wasm. Video export and plug-in installs are dimmed in the browser with the reason.

scripts/build-web.sh and .ps1 build web/ with the wasm-bindgen CLI pinned to Cargo.lock's
version, from packaging/web/index.html. The web profile (opt-level s, stripped, renderer and
geometry at opt-level 3) gives an 8973 KB module, 3278 KB gzipped, in 41 s.
crates/engine/tests/wasm.rs runs the engine inside WebAssembly in Node (3 tests, 0.6 s).
2026-11-09 22:36:09 -07:00
Tanish Manku 256ab42370 fix(engine): golden helper walks pixels with as_chunks for the newer clippy (M4) 2026-11-09 22:31:29 -07:00
Tanish Manku 690e0311f4 docs: Eraser and Eyedropper ADR 0034, roadmap, changelog and attribution (M7) 2026-11-09 22:21:07 -07:00
Tanish Manku 3862732928 feat(shell): Eraser (E) with erase modes, Faucet and Erase Everything, and Eyedropper (I) (M7)
The Eraser sweeps the brush tip with a live preview in the stage colour, [ and ] size it, and a double-click on its tool button (or Erase Everything in its options) clears the stage at this frame after asking. The Eyedropper picks a fill (solid, gradient, bitmap) or a line into the tool style, applies it to selected shapes, then becomes the Paint Bucket or the Ink Bottle; Shift-click picks into the other swatch. New original icons; --open eraser|erasing|eyedropper for screenshots.
2026-11-09 22:18:41 -07:00
Tanish Manku a629801d08 docs: ADR 0035 for the XFL corpus and golden renders, ADR 0009 testing, roadmap, changelog and attribution (M4) 2026-11-09 22:17:53 -07:00
Tanish Manku e4de73b5ce test(engine): golden renders of the XFL corpus with a reusable golden-image helper (M4)
20 frames of the corpus rendered by the CPU oracle at 160x90 and compared
with committed PNGs (a pixel differs past 3 per channel; at most 0.2 %
may), plus hand-worked colour probes, and every package opened with
file.open and round-tripped through .anicraft. UPDATE_GOLDENS=1 rewrites
the goldens; a mismatch writes the render and a diff image and names
them. Rendering and comparing all 20 frames takes about 20 ms.
2026-11-09 22:17:53 -07:00
Tanish Manku cc85a76be1 test(xfl): a self-authored corpus of eleven XFL packages with report, structure and hostile-variant tests (M4)
Every feature the importer claims, in hand-written XFL folders (with
original PNG and JPEG images). Each package has an exact report
expectation and targeted structure checks; 2,963 hostile variants (cut
short, garbled, files missing) import without panicking and evaluate,
in 0.15 s. The golden renders are committed with the packages.
2026-11-09 22:17:52 -07:00
Tanish Manku b28f1dffe1 fix(xfl): movie clips by default, brightness, instance names, comments, custom eases, and reports for what draws differently (M4)
A symbol without symbolType is a movie clip (the format leaves defaults
out). Brightness becomes a tint towards white or black; advanced colour
effects keep alpha and are reported. Movie clip and button instance names
that are identifiers are kept for actions (ADR 0024). Frame comments are
no longer labels. A one-segment custom ease is its cubic Bezier. Reverse
loop modes, non-round caps and joins, gradient strokes, repeating,
reflecting, focal-point, elliptical and linear-RGB gradients and extra
tween spins are reported instead of silently changed.
2026-11-09 22:17:52 -07:00
Tanish Manku 86f76dbc82 feat(engine): draw.erase with Animate's erase modes, the faucet and Erase Everything; paint.pick and paint.apply_style (M7)
The eraser sweeps the brush tip (ADR 0033) and goes into the planar merge as a fill whose regions come out empty, placed by the mode: on top (Erase Normal), between fills and lines (Erase Fills), over the lines only (Erase Lines), right above the selected fills or the fill the stroke starts on. Only raw shapes are erased; a stroke that erases nothing leaves no step (exact area and length compare). The Eyedropper picks a fill's paint (solid, gradient or bitmap, in stage space) or a line's colour, width and profile into the tool style; the Paint Bucket and the shape tools use a picked gradient where it is on the stage.
2026-11-09 22:13:26 -07:00
Tanish Manku 06c004b294 feat(engine): engine crates build and run on wasm32: vfs file layer, web clocks, single-threaded fallbacks (M8)
Commands read and write files through engine::vfs: std::fs on the desktop, an in-memory
store in the browser that the web shell fills from the file picker and empties into
downloads (ADR 0036). file.open opens .fla bytes through it and gains unsaved?: true for
restored copies. Instant/SystemTime come from web-time; rayon's deferred drops run inline
on wasm; the GPU crate plans layers in turn where wgpu handles aren't Sync; video export
says why it can't run in a browser; system font discovery is native-only.
2026-11-09 22:12:56 -07:00
Tanish Manku 96ff3368d8 Merge pull request #94 from storytold/m7/brush-tool
feat(drawing): Brush tool paints filled sweeps with pressure and paint modes (M7)
2026-11-09 21:58:20 -07:00
Tanish Manku fc281d4aa8 docs: Brush tool ADR 0033, roadmap, changelog and attribution (M7) 2026-11-09 21:22:33 -07:00
Tanish Manku 478c70feb8 feat(shell): Brush tool (B) with tool options, pen pressure, live preview and [ ] sizes (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku d7a53d99d3 fix(geom): a closed curve fit starts on its first corner, not across from the first point (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku 4a5522c4c1 feat(engine): draw.brush paints filled strokes with Paint Normal, Fills and Behind (M7) 2026-11-09 21:12:12 -07:00
Tanish Manku a535435a0f feat(geom): brush stroke outlines from the swept tip's distance field (M7) 2026-11-09 21:06:18 -07:00
Tanish Manku 4d9c1cef9c Merge pull request #93 from storytold/m3/gpu-bitmaps-filters
feat(gpu): bitmaps and filters on the GPU, the GPU as the default stage (M3)
2026-11-09 20:54:42 -07:00
Tanish Manku 863e8af60a fix(gpu): tests and bench build with merge drawing's Shape.merge; ADR renumbered to 0032 after merge drawing took 0031 (M3) 2026-11-09 20:45:47 -07:00
Tanish Manku 02c4e1fc13 chore: merge main into the GPU stage third slice (M3) 2026-11-09 20:44:05 -07:00
BFlat e8bbc45dab Merge drawing, first slice: raw shapes cut and join as in Animate (#92)
Part of #42. ADR 0031: raw shapes cut and join on the layer (exact Bezier planar merge), Object Drawing (J), dot-pattern selection, double-click connected, drop on move, screen-pixel nudge.
2026-11-10 10:08:36 +07:00
Tanish Manku 3f3f280806 fix(shell): unit tests never start the GPU stage (M3)
With the GPU the default, app-level tests started its start-up thread; on
CI (lavapipe installed) it was still in the Vulkan driver when the test
process exited, which crashed it (SIGSEGV after all tests passed).
2026-11-09 20:03:11 -07:00
Tanish Manku 313745b204 feat(gpu): the GPU is the default stage renderer; ADR 0031 (M3)
The shell's gpu-stage feature is on by default and Preferences > Stage >
Renderer defaults to Graphics card (GPU), with the CPU drawing whenever
there is no usable card, a tile is past the GPU's limits or anything
fails. The setting is stored under a new key: every earlier build wrote
the old one as Cpu without anyone choosing it. CI installs lavapipe so the
parity tests run on a software adapter.

Measured (release, RTX 5090): 4K filtered sample 3.9 ms on Vulkan and
4.2 ms on DX12 (CPU 31.5 ms); 200 bitmap fills 4.4 / 4.3 ms (CPU 37.2 ms).
Docs: ADR 0031, performance, roadmap, architecture, CHANGELOG.
2026-11-09 19:48:49 -07:00
Tanish Manku 5bed9916dd fix(gpu): the stage shaders build with Direct3D's FXC; no software adapters for the stage (M3)
FXC must unroll loops that index vector components and could not unroll
blend's and adjust's, so the GPU stage never started on a DX12 window.
Both are vector code now, with the same arithmetic order. The parity
suite passes on DX12 as on Vulkan. A software adapter (WARP, llvmpipe)
is refused for the stage, since the CPU oracle is faster;
GpuRenderer::software() opens one for tests. The self-test now compares
against the oracle (bitmap and filtered symbol included) and says where
it went wrong. The benchmark gains a filtered sample and 200 bitmaps.
2026-11-09 19:48:49 -07:00
Tanish Manku 0dae2056eb feat(gpu): bitmap fills and filters on the GPU stage (M3)
The oracle now hands filtered groups to other renderers as layers
(prepare_scene: Scene::layers, Fill::layer) and resolves each filter into
the exact steps it runs (filters::resolve); apply runs those same steps.
The GPU stage samples bitmaps from textures uploaded once per image
(bilinear by hand, the oracle's colour effect and repeat rules) and draws
each filtered layer, runs its filters as compute passes and composites it
like any fill. Parity: bitmaps byte-identical, filters max 1/255.
2026-11-09 19:48:49 -07:00
Tanish Manku d97e9289e0 Merge pull request #91 from storytold/docs/agent-limit-local
docs: agent count is not a project rule
2026-11-09 19:12:57 -07:00
Tanish Manku e9b9f4ab9a docs: how many agents run at once is the runner's own choice, not a project rule 2026-11-09 19:01:52 -07:00
Tanish Manku e51d9c4fc1 Merge pull request #90 from storytold/docs/one-agent
docs: one track agent at a time
2026-11-09 18:33:28 -07:00
Tanish Manku 03e51adc6f docs: one track agent at a time (two plus the lead still ran out the usage limit) 2026-11-09 18:24:47 -07:00
Dylan M. Taylor ca3e8f08df Release 0.1.0 2026-11-09 20:18:50 -05:00
Tanish Manku f355a74631 Merge pull request #89 from storytold/m2/motion-paths
feat(motion): motion paths on the stage with orient to path (M2)
2026-11-09 17:58:29 -07:00
Tanish Manku bccb5e4df7 chore: merge main (GPU stage, second slice) into motion paths (M2) 2026-11-09 17:50:15 -07:00
Tanish Manku 318d33b4a4 Merge pull request #88 from storytold/m3/gpu-direct-masks
feat(gpu): GPU stage without readback; masks, groups and blend modes on the GPU (M3)
2026-11-09 17:18:33 -07:00
Tanish Manku 25f0685bbb docs: ADR 0030 motion paths, CHANGELOG, roadmap (M2) 2026-11-09 17:13:50 -07:00
Tanish Manku 67bf3ee0de feat(ui): motion paths on the stage: bend, move ends, Subselection points and handles; Orient to path (M2)
The selected motion tween's path shows in the motion colour on a dark halo,
with a dot per frame. Selection drags the path to bend it and its ends to
move them; Subselection drags anchors and handles (smooth pairs stay in
line, Alt breaks them). Each drag is one undo step. Properties shows the
path (Straighten) and Orient to path. --open motionpath|motionpoints show
it for screenshots and the accessibility audit.
2026-11-09 17:12:21 -07:00
Tanish Manku aa6b0a5565 feat(engine): motion.set_path, motion.clear_path, motion.orient; moving the object reshapes its path (M2)
Auto-key on a path tween: moving the object at the first position key
moves the path's start, at the last its end, in between the path bends
until the object lands where it was put; X/Y keys keep the timing.
motion.info reports the path, orient and where the object is. The
every-command fuzz also runs on an oriented motion path.
2026-11-09 17:06:25 -07:00
Tanish Manku 5cc790a379 feat(doc): motion paths for motion tweens, by arc length, with orient to path (M2)
A motion tween may carry a cubic motion path in the layer's space. The
registration point travels it by arc length (geom::walk::CurveWalk, exact
points and tangents); the X/Y curves give the timing, leg by leg between
position keys, signed so overshooting eases overshoot along the path. A
straight path reproduces the X/Y curves exactly. Splitting a span cuts the
path where the object is. Files without a path open unchanged.
2026-11-09 17:01:25 -07:00
Tanish Manku eb85dd2411 feat(gpu): GPU stage draws into the window's textures, no readback; ADR 0029 (M3)
The GPU stage shares eframe's wgpu device (egui_wgpu::RenderState) and
draws each stage tile into a storage texture the shell registers with
egui as it is. Fallbacks: a headless device with readback (window on
OpenGL), then the CPU oracle. Every call runs in thread-local error
scopes; nothing is installed on the window's device; a work bound per
dispatch guards the driver watchdog.

The engine stays GPU-free: Raster::Native carries an opaque image, cached
under its own 384 MB budget; only the shell downcasts it.

perf, gpu_bench on RTX 5090 (Vulkan), 32 threads:
  4K, 1,000 shapes: CPU 16.2-19.6 ms, read-back 8.4, direct 2.1-2.4 ms
  4K, 10k shapes:   CPU 25.8-28.1 ms, read-back 23.2, stage tiles 10.2 ms
  4K, masked 10k:   CPU 74.8-80.0 ms, stage tiles 10.9 ms
Binning stays on the CPU (ADR 0029: not the bottleneck as stage tiles).
2026-11-09 16:58:49 -07:00
Tanish Manku d1627efc0c feat(gpu): masks, nested masks, group alpha and blend modes on the GPU stage (M3)
render::prepare_scene hands the oracle's prepared fills with their clips
(artwork, cleaned parents, bounds) and groups (chains, sanitized alpha,
blend) to the GPU. The binning emits per-tile streams with clip-level and
group open/close entries; fine.wgsl keeps a per-pixel group stack and clip
coverage and blends with the oracle's separable W3C formulas. Parity on
the RTX 5090: max 1/255, mean <= 0.0011/255 on every new scene.

Also a texture entry point (main_texture) and GpuRenderer::shared for the
window's device; render_texture draws without readback.
2026-11-09 16:49:09 -07:00
Tanish Manku 86f74b71a3 Merge pull request #86 from storytold/m6/html-canvas-export
feat(export): HTML canvas export with an interactive player (M6)
2026-11-09 13:55:34 -07:00
Tanish Manku 985b9c71b9 Merge pull request #85 from storytold/fix/timeline-header
fix(shell): the timeline header fits at the default window size
2026-11-09 13:28:46 -07:00
Tanish Manku a7b3b0f2fa feat(engine): file.export_html, File > Export > Export HTML Canvas; ADR 0028, docs (M6) 2026-11-09 13:22:19 -07:00