Commit Graph
17 Commits
Author SHA1 Message Date
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 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 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 02842502f7 feat(render): soft masks in the HTML canvas export (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 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 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 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 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 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 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 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 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 0fc73dc9ce feat(render): HTML canvas export with a JS port of the player, tested against it in Boa (M6) 2026-11-09 13:22:19 -07:00