Skip to content

feat(wasm): colour the burn by arrival time and the front by rate of spread - #213

Merged
filippi merged 1 commit into
forefireAPI:devfrom
HugoFara:feat/wasm-arrival-spread
Oct 24, 2026
Merged

filippi merged 1 commit into
forefireAPI:devfrom
HugoFara:feat/wasm-arrival-spread

Conversation

@HugoFara

@HugoFara HugoFara commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #211. The demo's perimeter trail is replaced by two layers built from what the engine already reports:

  • Arrival: burnt ground coloured by when it caught fire, with labelled isochrones (ForeFire's arrival-time map, rebuilt from each frame's perimeter).
  • Spread: the front coloured by each node's rate of spread, read from the vel in print[].

Each has a toggle and a key. Tested in Chrome and Firefox.

In 2D
image

3D view

image

Drafted with Claude Opus 5.5, reviewed by me

…spread

The faded perimeter trail is replaced by two layers built from what the
engine already reports. Arrival paints the burnt ground by when it caught
fire, the arrival-time map ForeFire writes natively, with isochrones at a
round interval. Spread colours each segment of the front by its nodes'
rate of spread, which the worker now keeps from the `vel` in print[] instead
of discarding it.

Each frame's fronts become one Path2D in domain metres once per run, so the
arrival layer redraws through a transform as the view pans and zooms.
@HugoFara
HugoFara marked this pull request as ready for review October 23, 2026 22:48
@filippi
filippi merged commit e142544 into forefireAPI:dev Oct 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants