Commit Graph
6 Commits
Author SHA1 Message Date
survandClaude Sonnet 5 7c7ca37c4b feat: add a headless mode, driven by clap CLI args
--headless renders the current view straight to a PNG and exits, with
no window/event loop: it builds its own offscreen wgpu device and reuses
the same reference-orbit + ExportRender path as the "Export PNG" button.
--width/--height set the output resolution (default 1920x1080); not yet
supported with --buddhabrot.

Refactors FractalApp::new's state construction and CLI handling into
default_state()/apply_cli() so headless mode can reuse them, and factors
the PNG tile-render/readback/encode loop into a shared
export_to_png_blocking() used by both the windowed export path and
headless.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GFBP9qrNg6NGJWzzP36xe
2026-09-19 18:03:54 +02:00
survandClaude Sonnet 5 ff5ac0f262 feat: add clap CLI arg parser, replacing MANDEL_* debug env vars
Prep work for a headless render mode: native debug flags (kind, power,
julia, share, view, de, buddhabrot, export, ...) are now parsed with
clap instead of read from env vars, with proper --help/--version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GFBP9qrNg6NGJWzzP36xe
2026-09-19 17:51:03 +02:00
surv 58eb443e56 to rebase 2026-09-18 17:30:02 +02:00
surv f373db91e6 chore: Refactor files and fix warnings 2026-09-16 15:31:40 +02:00
surv c197a03a51 feat: force webgpu in WASM 2026-09-15 08:55:18 +02:00
surv 09d7976ebd First commit 2026-09-15 08:55:18 +02:00