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.