tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definitions

⎇ c5a232cf24788ab75a850ffe81eca5a7af50e2f8 widgets/spinner/README.md Markdown · 20 lines · 805 B History raw

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-spinner
2
3Circular spinner animated by absolute clock.
4
5The paint uses `Instant::now()` to compute the rotation angle, so the app need
6not keep a tween or dispatch ticks: whenever llimphi-ui rasterizes a frame
7(because something changed in the model, or because the app asked for a repaint),
8the spinner appears to be turning.
9
10**Note**: the spinner only animates if there ARE frames. An idle app will not
11repaint on its own — use `Handle::spawn_periodic(50ms, …)` while the spinner is
12visible to force redraws. Or connect the spinner to a `Tween` and read its
13`progress()` from the `view`.
14
15Visual design: a 270° arc with a varying stroke (thicker at the leading edge of
16the turn, thinner behind) to convey acceleration.
17
18---
19
20Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-spinner

Circular spinner animated by absolute clock.

The paint uses Instant::now() to compute the rotation angle, so the app need not keep a tween or dispatch ticks: whenever llimphi-ui rasterizes a frame (because something changed in the model, or because the app asked for a repaint), the spinner appears to be turning.

Note: the spinner only animates if there ARE frames. An idle app will not repaint on its own — use Handle::spawn_periodic(50ms, …) while the spinner is visible to force redraws. Or connect the spinner to a Tween and read its progress() from the view.

Visual design: a 270° arc with a varying stroke (thicker at the leading edge of the turn, thinner behind) to convey acceleration.


Part of llimphi — see llimphi.