Commit Graph
70 Commits
Author SHA1 Message Date
Tanish Manku 305df586cc docs: ADR 0079 Asset Warp, guide, roadmap, changelog and attribution (M7) 2026-11-12 19:52:46 -07:00
Tanish Manku 1847182a2c feat(render): SVG bakes warped bitmaps as images; HTML reports them (M7) 2026-11-12 19:52:31 -07:00
Tanish Manku 7a89c79d4b feat(render): warped bitmaps drawn through their mesh in the oracle, GPU parity (M7) 2026-11-12 19:52:31 -07:00
Tanish Manku a9e48b1184 feat(doc): warp meshes on shapes and bitmaps, bent by pins (rigid MLS), pins tween (M7) 2026-11-12 19:52:31 -07:00
Tanish Manku 6816f99246 chore: merge main (groups and Combine Objects) into the gradient tools (M1) 2026-11-12 17:50:49 -07:00
Tanish Manku b9c70998c1 Merge remote-tracking branch 'origin/main' into m1/groups-combine
# Conflicts:
#	CHANGELOG.md
#	crates/engine/src/cmds_draw.rs
#	docs/guide/drawing.md
#	docs/guide/reference/commands.md
#	docs/roadmap.md
#	src/main.rs
#	src/stage.rs
2026-11-12 17:14:47 -07:00
Tanish Manku b9b397d878 fix(engine): a gradient drag keeps a raw fill's id; tests for the colour panel, tool and exporters (M1)
paint.transform_fill no longer re-merges a raw fill: re-merging gave the shape
a new id after the first step of a drag, so the Gradient Transform tool lost
it in the editor's default (merge) drawing mode. The stop bar's edits are pure
functions now (add, move, remove, widest gap), tested; the tool's drags run
through real frames for linear, radial and bitmap fills; HTML canvas and SVG
export of spread, focal point, ellipse and linear RGB are checked.
2026-11-12 14:53:13 -07:00
Tanish Manku 48c886e31b test(render): HTML filter tests build gradients with Paint::linear (M1) 2026-11-12 14:25:05 -07:00
Tanish Manku 00b2cba610 feat(render): gradient spread, focal point, ellipses and linear RGB (M1)
Paint::Linear and Paint::Radial gain optional spread (extend/reflect/repeat)
and linear_rgb; radial gradients gain a focal point and a matrix (any
ellipse). All default and are skipped when unset, so older files and plain
gradients are stored as before. The CPU oracle, the GPU stage (and its
emulator), SVG and HTML export, and SVG and XFL import handle them exactly;
Lottie reports what it can't show. Fill frames (Paint::frame/with_frame/
fitted) are the basis of the Gradient Transform tool.
2026-11-12 14:21:34 -07:00
Tanish Manku f2efea8191 feat(doc): groups (Modify › Group, Ungroup), edited in place, and Combine Objects (M1)
A group element kind holding its members as a one-layer, one-frame timeline
(serde default; older files unchanged), evaluated like an instance on its
layer; every walker (Library uses, sounds, player, HTML export, explorer,
clipboard, Library deletion) sees inside groups. symbol.edit opens a group in
place; the editing stack levels are symbols or groups. modify.group (Ctrl+G),
modify.ungroup (Ctrl+Shift+G), Break Apart on groups, and modify.combine
(Union, Intersect, Punch, Crop) on the planar map. Reserves ADR 0073.

Refs #206, #229
2026-11-12 13:53:34 -07:00
Tanish Manku 4f58bc9633 test(render): a type for the filter parity helper's result (M6) 2026-11-12 13:03:17 -07:00
Tanish Manku 329d97e39e chore: merge main (soft masks and text on a path, shape armatures) into HTML filters (M6)
canvas.js combines both: soft-mask artwork draws on the mask's layer, which
has the place and size of the layer it masks (so inside a filtered group it
reaches past the canvas too); the filtering trail records mask modes. New
parity test: filters under and inside alpha and luminance masks against the
oracle's frame (largest difference 4e-7).
2026-11-12 12:58:14 -07:00
Tanish Manku 9c509bbfa6 fix(render): the page carries filters.js, between the player and the page code (M6)
Found in a headless Chrome check of an exported page: the page script lacked
filters.js, so a movie with filters didn't start. The page test now checks
that the script holds all three sources in order.
2026-11-12 00:58:56 -07:00
Tanish Manku df1cf52cd9 feat(render): filters, Subtract and Invert in HTML canvas export (M6)
The page runs every filter as the CPU renderer does: filters.js ports
filters.rs (box-blur passes, shadow, glow, bevel, gradient ramps, colour
matrices, knockout, inner, hide object) over a layer that reaches past the
canvas by the filters' reach, cut to the artwork plus that reach. Subtract
and Invert are composited per pixel with the renderer's formula. Filtered
groups are kept by what was drawn in them, so an unchanged group is
filtered once.

Parity in Boa against the oracle's own layers: 35 filter cases (every kind,
side, knockout and switch, and stacks) at view scales 1, 1.5 and 2, largest
difference 9.3e-4; box widths and offsets equal over 4160 resolutions.

node 24, 1080p: the demo's two filtered groups 3.4 ms a frame when both
change (0 when cached); a full-frame 1920x1080 glow 51 ms, drop shadow and
bevel 92 ms, blur 20 quality 3 146 ms; Subtract over 1080p 6 ms.
2026-11-12 00:56:34 -07:00
Tanish Manku bdb7515e3c feat(engine): text on a path: attach to a shape, move along, flip, release; edits keep it on its path (M4) 2026-11-12 00:53:53 -07:00
Tanish Manku 02842502f7 feat(render): soft masks in the HTML canvas export (M4) 2026-11-12 00:53:52 -07:00
Tanish Manku 27b919f380 feat(render): soft masks in SVG export (mask with mask-type) and Lottie (alpha and luma track mattes) (M4) 2026-11-12 00:53:52 -07:00
Tanish Manku 8cc0384bc1 feat(render): soft masks: mask layers reveal by their artwork's opacity or luminance (M4) 2026-11-12 00:53:52 -07:00
Tanish Manku a578dc510e feat(html): text fields in the HTML canvas export, with native inputs and player parity (M5) 2026-11-11 19:40:51 -07:00
Tanish Manku 538142057d feat(text): dynamic and input text fields in the model, player, scripts and XFL import (M5) 2026-11-11 19:40:41 -07:00
Tanish Manku b6cfa585c6 chore: merge main (colour effects, ADR 0056) into button sounds; hit-area tint on ColorTransform (M5) 2026-11-11 14:31:13 -07:00
Tanish Manku e60f65e800 feat(html): the page plays sounds on button frames with Web Audio, as Test Movie does (M5) 2026-11-11 14:04:59 -07:00
Tanish Manku 54c27ef0d4 fix(symbol): 9-slice guides switched off are kept and come back when switched on (M5) 2026-11-11 14:00:10 -07:00
Tanish Manku cadfe62913 chore: merge main (9-slice, ActionScript logic, v0.2.0) into colour effects (M2) 2026-11-11 13:55:28 -07:00
Tanish Manku e24a23cd95 chore: merge main (ActionScript logic, v0.2.0) into 9-slice scaling (M2) 2026-11-11 13:43:27 -07:00
Tanish Manku 6c30eb519c test(engine): colour effect commands, tweens, renders, SVG and Lottie; a screenshot state (M2) 2026-11-11 04:56:50 -07:00
Tanish Manku f78ae40e89 feat(doc): colour effect styles as one exact colour transform, rendered, exported and edited everywhere (M2) 2026-11-11 04:50:41 -07:00
Tanish Manku f07a969c15 test: tidy 9-slice tests for clippy (M2) 2026-11-11 04:39:19 -07:00
Tanish Manku 042d8b4daf test(render): the oracle, SVG and Lottie draw 9-sliced instances; HTML reports them (M2) 2026-11-11 04:34:52 -07:00
Tanish Manku 94ad425c71 feat(doc): 9-slice guides on symbols, sliced evaluation and XFL scaleGrid import (M2) 2026-11-11 04:34:14 -07:00
Tanish Manku 9d9377bbf7 docs: ActionScript small logic as ADR 0052 (M6) 2026-11-11 04:33:51 -07:00
Tanish Manku e00b02f7d9 fix(html): seed the page's random numbers from the clock; tidy player.js for the analysers (M6) 2026-11-11 04:33:51 -07:00
Tanish Manku e64a720a8e feat(actions): ActionScript small logic: typed variables, expressions, loops, property reads, enter-frame and key listeners (M6)
The ActionScript subset compiles to a small typed script IR (statements and
expressions) that the player evaluates with a fuel budget, instead of a flat
action list. Timeline variables live per instance; functions and variables
link across the frames of one timeline; Math.random() is seeded. The HTML
canvas player mirrors the evaluator and the parity tests run both.
2026-11-11 04:33:46 -07:00
Tanish Manku 3b6f59f65b chore: merge main (GPU binning) into Library management (M2) 2026-11-11 00:11:30 -07:00
Tanish Manku 18b07fffe0 feat(render): bitmaps without Allow Smoothing keep hard pixel edges in the oracle, the GPU stage, SVG and HTML (M2) 2026-11-10 23:43:59 -07:00
Tanish Manku 0fbf8c5d0f feat(render): hairlines for outline mode, and integer tile backdrops in the GPU binning (M3)
Outline mode (an outlined layer, onion skin's outlines) draws hairlines straight from
the flattened path: coverage 1 - the distance to the nearest segment, one edge per
segment where a stroked hairline was four plus a disc at every bend. Exact for axis-
aligned lines, no darkening at overlaps and joins. The GPU stage computes the same.

The binning's per-row float backdrops become one integer per tile plus a piece on the
tile's left edge wherever the outline crosses it (Vello's backdrops and y-edges), which
lets the GPU compute the same lists without float atomics. Parity unchanged.
2026-11-10 20:23:55 -07:00
Tanish Manku f910c67477 perf(render): measure styled strokes (M7)
300 curved strokes, 1280x720, 32 threads, median of 9 (release):
uniform 2.52 ms, taper_both 2.41, bulge 2.63, square+miter 2.18,
dashed 8/4 1.78, dotted 4 1.87, taper_both dashed 2.15.
2026-11-10 18:54:23 -07:00
Tanish Manku fc4d20c24c feat(export): SVG, Lottie and HTML canvas write stroke caps, joins, miter limit and dashes (M7) 2026-11-10 18:48:05 -07:00
Tanish Manku a1482962bc feat(render): stroke caps, joins, miter limit and dashes in the model and the CPU oracle (M7) 2026-11-10 18:41:53 -07:00
Tanish Manku 13620efb8f feat(player): run ActionScript in the subset in Test Movie and the HTML export, with mouse listeners (M6) 2026-11-10 16:34:25 -07:00
FredApps 65233523b4 Report a failed HTML movie start instead of leaving the promise unhandled 2026-11-10 11:15:41 +01:00
Tanish Manku d7c0434a25 chore: merge main (ActionScript tier 1) into sound effects; tests build with Symbol.linkage (M5) 2026-11-10 00:35:46 -07:00
Tanish Manku 4fb0b993fc feat(script): keep frame scripts, linkage and document classes from XFL (M6)
ADR 0013 tier 1: a keyframe can keep a script verbatim (FrameScript::Source,
text and language) beside actions and plug-in frame scripts; symbols keep a
linkage class and the document a document class, as text. The XFL importer
reads <Actionscript> frame scripts in scenes and symbols, linkage attributes
and the publish profile's language and document class, and reports them as
kept, not run. script.set/clear/list/set_class commands; nothing runs them.
New corpus package 'scripts' with golden renders.
2026-11-10 00:10:27 -07:00
Tanish Manku de38e47aa3 feat(audio): sound effect envelopes, layer volume and mute, sounds inside symbols (M5)
Frame sounds get Animate's Effect presets and Custom envelopes (up to 16
points per channel, seconds from the sound's start), shaped over the time
the sound is heard. Layers get a volume and Mute, multiplied down through
symbols. Graphic symbols play their sounds on their own frames mapped to
the parent's time (streams join mid-way), movie clips on a loop from when
the instance appeared; the interactive player reports entered sounds so
Test Movie plays them, following the audio clock. The mixer applies
per-channel envelopes and start offsets sample-exactly. HTML canvas
export carries envelopes, volumes and graphic sounds. Edit Envelope
window, timeline mute toggle, waveform shaped by the envelope.
2026-11-10 00:02:17 -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 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 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 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