Commit Graph
59 Commits
Author SHA1 Message Date
Tanish Manku 996d7220a8 chore: merge main (frame scripts, Test Movie) into bevel and gradient filters (M5) 2026-11-09 05:39:38 -07:00
Tanish Manku 6a5b3f423d fix(app): name the Actions panel's list id scope plainly, not 'salt' (CodeQL took it for a cryptographic salt) (M6) 2026-11-09 05:18:52 -07:00
Tanish Manku a0dd41657f docs: ADR 0024 frame actions, frame scripts and Test Movie; plug-in ABI, roadmap, changelog (M6)
Also keeps frame-script plug-ins out of Commands > Plug-ins and the palette
(the Plug-ins window says where they are used instead).
2026-11-09 05:18:52 -07:00
Tanish Manku f18e4c9d4b feat(engine): frame actions, frame scripts on the plug-in host and Test Movie (M6)
Commands: actions.set/clear/list, instance.set_name, control.test_movie
(Ctrl+Enter; headless it plays the movie and reports its output), and
file.new_sample {which: interactive}. Frame-script plug-ins (kind
frame-script, entry points) run on enter-frame with Limits::frame_script:
20 M instructions shared per frame, 100 ms, ops player/action/actions/log,
no commands; plugin.run refuses them.

App: Test Movie window (player at the document frame rate, pointer to
buttons, Output panel, restart/pause/step, snapshot of the document),
Actions panel (F9) with structured action lists for keyframes, movie clip
timelines and button/movie clip events, instance name and events in
Properties, an 'a' mark on keyframes with actions.
2026-11-09 05:18:45 -07:00
Tanish Manku 9c7f65d305 feat(doc): timeline action IR and a pure interactive player (M6)
anicraft-actions (L0): typed actions (stop, play, go to a frame or label in
a scene, next/previous frame and scene, trace, set property), instance-name
target paths, button events, plug-in frame-script references.

anicraft-doc: keyframes carry a FrameScript, symbol instances carry event
handlers (serde defaults, sanitized on load). player::{start, step} steps a
PlayerState (scene, playheads, script-set properties, pointer) with budgets;
evaluate_player draws it; evaluate stays pure and unchanged.
2026-11-09 05:18:14 -07:00
Tanish Manku e3549b9bda fix(filters): review: centred even blurs, inner margins, area-capped reach, SVG region and ramp tables, stable ramp editing (M5)
* Box blurs of an even width were half a pixel off centre: now centred (one more
  pixel each side at half weight), so bevels stay symmetric.
* Inner effects blur the transparency around the artwork, so every side gets the
  full margin (inner Glow and Drop Shadow came out weak near the buffer edge).
* The reach past the surface is capped by area, keeping the padding around the
  artwork on wide surfaces (a 4096 px surface clipped shadows to the artwork).
* SVG: filter regions are the stage grown by the reach in user space; ramp tables
  have the CPU's 257 samples.
* Ramps: one pinned stop, others step aside (sanitize is idempotent); XFL ramps
  use one ratio scale; the panel edits sanitized filters, keeps moved stops between
  their neighbours and clear of the pin, and adds a stop from the keyboard.
2026-11-09 05:17:39 -07:00
Tanish Manku d28f0446a5 feat(filters): Bevel, Gradient Glow and Gradient Bevel filters (M5)
Model (FilterSide inner/outer/full, ramps with a pinned transparent rest stop),
CPU oracle (signed offset-difference field of the blurred opacity; ramp table),
SVG export with standard primitives, element.set_filters with hex colours and
ramp stops, XFL import of BevelFilter, GradientGlowFilter and
GradientBevelFilter, and Properties > Filters rows with a compact ramp editor.

Per 400x300 buffer, blur 16, quality Medium (release): Glow 0.87 ms, Bevel
1.33 ms, Gradient Glow 1.66 ms, Gradient Bevel 2.42 ms.
2026-11-09 05:17:20 -07:00
Tanish Manku 2805470a3e feat(shell): shape hint markers on the stage, Modify > Shape > Add Shape Hint (M2) 2026-11-09 04:43:18 -07:00
Tanish Manku 261dc14567 chore: merge main (variable-width strokes) into accessibility; the width profile picker and previews are named for screen readers (M8) 2026-11-09 04:32:58 -07:00
Tanish Manku 069cfdee43 feat(a11y): name the Sound properties from main; audit a sound keyframe too (M8) 2026-11-09 04:23:04 -07:00
Tanish Manku 24abe905f7 test(a11y): keyboard ownership with a focused control; timeline anchor falls back to the top row (M8) 2026-11-09 04:21:29 -07:00
Tanish Manku 73e82ba354 feat(a11y): interface scale up to 200 %, --theme/--scale for screenshots (M8)
- Stage stays fitted when the canvas changes size (window, docks, scale).
- Docks start proportional to the window and never crowd out the stage.
- Tools column scrolls; the timeline header scrolls sideways instead of
  clipping; the status message truncates before the readouts, which drop
  diagnostics when narrow, and is a polite live region for screen readers.
- Layer-count hint moves into the Layers header row.
- anicraft --theme graphite|high-contrast --scale <percent> (not saved).
2026-11-09 04:21:17 -07:00
Tanish Manku 95f4cc607c feat(a11y): screen-reader names for every control, Ctrl+F6 panel focus, high-contrast palette (M8)
- a11y module: names and roles for custom-painted controls (tools, layer
  toggles, icon buttons, library rows), Named for value-only widgets,
  focus rings, panel anchors and Ctrl+F6 / Ctrl+Shift+F6 cycling.
- Headless test walks egui's AccessKit tree in 22 UI states and fails on
  interactive nodes without a name or role.
- theme: runtime palette (Graphite, High contrast) behind T; new tokens
  on_active, icon_hot, on_fill, accent_text, control_outline.
- Contrast test covers both palettes; fixes two graphite AA misses
  (playhead number, accent-coloured text) and text_faint on headers.
2026-11-09 04:20:59 -07:00
Tanish Manku d85e398c4a chore: merge main (GPU stage, SVG clips) into variable-width strokes; GPU parity covers width profiles (M7) 2026-11-09 04:17:57 -07:00
Tanish Manku 3c79f97701 chore: merge main (SVG clips and text) into the GPU stage (M3) 2026-11-09 04:07:01 -07:00
Tanish Manku 6b8e3cb26f chore: merge main (audio, plug-ins, motion tweens) into variable-width strokes; ADR renumbered to 0018; plug-ins may edit stroke widths (M7) 2026-11-09 04:00:33 -07:00
Tanish Manku 244e21527b chore: merge main (audio, plug-ins, motion tweens) into the GPU stage (M3) 2026-11-09 03:58:26 -07:00
Tanish Manku 7e7d3a29d0 chore: merge main (audio, plug-ins, motion tweens) into SVG clips and text; fix an ADR reference (M4) 2026-11-09 03:57:17 -07:00
Tanish Manku 9173796835 docs: GPU stage ADR is 0019, as assigned by the lead (M3) 2026-11-09 03:44:33 -07:00
Tanish Manku 38209b8913 docs: ADR 0014 GPU stage, measured timings, roadmap and status (M3) 2026-11-09 03:44:33 -07:00
Tanish Manku 640186669e feat(shell): gpu-stage feature with a Preferences renderer switch and status (M3)
Preferences > Stage > Renderer (and View > Stage Rendering) choose CPU
(reference) or GPU (preview) in builds with --features gpu-stage. The
renderer starts off the UI thread; the status bar says who drew the
visible tiles and why the CPU stepped in. ANICRAFT_STAGE_RENDERER
overrides the preference (also for --screenshot).
2026-11-09 03:44:28 -07:00
Tanish Manku 2f3ab271d9 feat(gpu): wgpu stage renderer over the oracle's fills, with parity tests (M3)
New crate anicraft-gpu (L3): the CPU oracle prepares the fills
(render::plain_fills: flattening, strokes, shaders and gradient tables,
culling), binning sorts edge pieces into 16x16 tiles with per-row
backdrops, and one compute pass computes each pixel's exact area coverage
and composites in display-list order. Masks, groups and bitmaps are
handed back (NeedsFull) for the CPU to draw.

Parity on an RTX 5090 (Vulkan): max 1/255, mean < 0.0001/255 on the
sample and stress scenes; tests skip with a message without an adapter.
2026-11-09 03:44:28 -07:00
Tanish Manku b5f3b5463e docs: audio decision record is ADR 0020, as assigned by the lead (M5) 2026-11-09 03:43:36 -07:00
Tanish Manku cf7e39c251 docs: audio decision record renumbered to ADR 0015 after the XFL text ADR took 0014 (M5) 2026-11-09 03:43:35 -07:00
Tanish Manku 8d858096a2 fix(audio): say once when playback has no sound device (M5) 2026-11-09 03:43:28 -07:00
Tanish Manku 75eabe8527 feat(audio): play sounds in sync, waveforms on the timeline, Sound properties and library sounds (M5)
Stage playback plays the movie's sounds through cpal (optional default
feature sound-output) and the playhead follows the audio clock; a moved
playhead plays a one-frame snippet of stream sounds (scrubbing). The device
opens on first need, never in screenshot runs or tests, and a failure falls
back to silent wall-clock playback.

Timeline rows draw each keyframe's waveform over its span, repeats
included. Frame Properties gain Sound, Sync and Repeat/Loop. The Library
lists sounds with Preview, Place on timeline and Delete. Import to Stage
and Import to Library take WAV, OGG and MP3; Export Audio writes the
soundtrack.
2026-11-09 03:43:09 -07:00
Tanish Manku 30c121d269 feat(audio): sounds in the library and on keyframes, mixed to WAV and into video export (M5)
New L0 crate anicraft-audio: WAV reader/writer, Ogg Vorbis (lewton) and MP3
(nanomp3) decoding with hard size caps and a panic guard, a pure stereo
mixer (sample-exact at equal rates, Catmull-Rom resampling otherwise),
waveform peaks and a device-independent Player.

Document: Sound library items (the imported bytes, decoded once), a
FrameSound on keyframes (Event/Start/Stop/Stream, repeat, loop), and
sound::voices(), the pure layout of the movie's sounds in time.

Commands: file.import_to_library, Import to Stage for sounds, sound.place/
set/remove/delete/rename, file.export_audio, and the soundtrack in
file.export_video (Opus in WebM, AAC in MP4, by the user's ffmpeg).
2026-11-09 03:42:55 -07:00
Tanish Manku d868758ee2 feat(engine): Import to Stage makes a folder with mask layers for clipped drawings (M4) 2026-11-09 03:34:13 -07:00
Tanish Manku c37bd08afc fix(plugins): plug-ins may call motion tween commands, like other document edits (M6) 2026-11-09 03:33:27 -07:00
Tanish Manku ef624e3761 chore: rebase on main (autosave); plug-ins ADR renumbered to 0017 (M6) 2026-11-09 03:32:06 -07:00
Tanish Manku f10746bc48 feat(plugins): Commands menu with Plug-ins, generated dialog with live preview, Plug-ins window, palette entries (M6) 2026-11-09 03:31:51 -07:00
Tanish Manku 0aedae7da3 feat(plugins): sandboxed WebAssembly plug-in host (wasmi, ABI v1, limits, registry) (M6) 2026-11-09 03:31:33 -07:00
Tanish Manku 60712c0b08 chore: rebase on main (autosave, app icon); motion tweens ADR renumbered to 0016 (M2) 2026-11-09 03:25:12 -07:00
Tanish Manku 3da1a9712a fix(shell): compact timeline header with the Motion Editor tab (M2)
One Create tween menu (motion, classic, shape) instead of three buttons,
narrower ease/kind combos and zoom slider, so the header fits at 1280 px.
2026-11-09 03:23:23 -07:00
Tanish Manku f41892b87f feat(shell): Motion Editor tab and motion tween spans on the timeline (M2)
Timeline | Motion Editor tabs share the dock (Window menu too; double-click a
motion span to open it). Property list with values at the playhead (drag to
key) and key toggles; a curve graph per property: drag keys, drag the Bezier
handles of a segment, click to scrub, double-click to add a key; each drag is
one undo step. Motion spans are sky blue with property-key diamonds; Create
Motion Tween in the header, right-click menu and Properties.
--open motion / motionspan show it for screenshots.
2026-11-09 03:23:18 -07:00
Tanish Manku 83c542b11a docs: renumber the autosave ADR to 0015 after the XFL text ADR took 0014 (M8) 2026-11-09 02:19:42 -07:00
Tanish Manku ade67dcc9a feat(app): background autosave with Restore / Discard / Later on start (M8)
The shell schedules recovery copies (every minute or 25 changes, set in
Preferences > Files > Autosave, with an off switch) on the engine's
Autosaver, waking itself when the interval runs out; the recovery folder
comes from platform::recovery_dir. A non-blocking window offers work left
by crashed sessions; File > Recover Autosaved Documents brings it back.
Clean exits and saves remove the copy. Preferences scroll when taller
than the window. bench measures one autosave.
2026-11-09 02:19:34 -07:00
BFlat 3d968294fa App icon (engraved rabbit) and README with screenshots (#70)
- assets/app-icon: the rabbit vectorised onto the shared Crafting Apps
  tile (512 viewBox, rx 112) with a neutral white paper tone; renders for
  Windows (.ico), Linux (hicolor) and Apple's icon grid (padded tile);
  trace.py and scripts/icons.sh regenerate them.
- The app shows it on the window, the macOS Dock, the Windows taskbar
  and anicraft.exe (winresource), and in Help > About (--open about).
- README: icon header, screenshots, the sample animation as a GIF,
  quick start, status, downloads and the Crafting Apps table.
- ATTRIBUTION and CHANGELOG rows for the new files.
2026-11-09 17:15:01 +08:00
Tanish Manku 08949fef7e fix(shell): Width menus keyed by an enum row, not a string salt (M7) 2026-11-09 02:12:08 -07:00
Tanish Manku 74a7bbe73a feat(render): variable-width strokes with width profiles and a Width tool (M7)
Strokes carry an optional width profile (width points: position by arc
length, left/right factors of the nominal width; monotone cubic between
points). The CPU oracle outlines them as positive trapezoids, outer-side
round joins and cross-section caps; SVG and Lottie write the same polygons
as filled outlines. stroke.* commands, a profile picker in Properties and
the tools' options, the Width tool (U) on stage, shape tweens blend
profiles. Also fixes Rect::transformed leaving flat rects untransformed
(horizontal lines missed bounds checks).
2026-11-09 02:02:05 -07:00
Tanish Manku 95131360bd feat(xfl): import text fields as text blocks, report missing fonts (M4) 2026-11-09 01:51:06 -07:00
Tanish Manku efcb969c3a feat(render): filters on movie clip and button instances (drop shadow, blur, glow, adjust color) 2026-11-06 23:24:27 -07:00
Tanish Manku 2914644f37 feat(render): blend modes on movie clip and button instances 2026-11-06 23:07:53 -07:00
Tanish Manku c00164b5d2 feat(text): Text tool and text blocks laid out into stored outlines (ADR 0012) 2026-11-06 22:53:46 -07:00
Tanish Manku 63b39355ea feat(export): Lottie animation export, frame-accurate (file.export_lottie) 2026-11-06 22:34:03 -07:00
Tanish Manku 40559ea23f feat(library): list imported images in the Library and place them from it 2026-11-06 21:33:37 -07:00
Tanish Manku 4a5f9ed549 feat(media): bitmap images: PNG/JPEG import to stage, bitmap fills, stored as PNG 2026-11-06 21:21:31 -07:00
Tanish Manku 0b2090474f feat(export): video export (WebM VP9 / MP4 H.264) by streaming frames to the user's ffmpeg 2026-11-06 21:04:47 -07:00
Tanish Manku b3295bfd68 feat(symbols): movie clips loop their own timeline, buttons hold Up, graphic looping and symbol type in Properties 2026-11-06 20:55:02 -07:00
Tanish Manku 0f22c92d08 test: enforce crate layering, no UI crates below the shell, and the AGENTS.md workspace map 2026-11-06 20:45:21 -07:00