Expand description
Backend-agnostic animation engine (ported from thinking-orbs).
Structs§
- Dot
- A projected, depth-shaded disk.
- Frame
- Frame geometry produced by a mode painter (backend-agnostic).
- Line
- A stroked edge between two projected points (the
connectingweb). - Mode
Opts - Free-form numeric knobs for mode painters (mirrors upstream
ModeOpts). - Proj
- Spin + tilt + orthographic projection, precomputed once per frame.
Constants§
- MAX_
ICON_ D - MAX_
MORPH_ DOTS - Max dots the Morph painter will emit after
icon_dis applied. - MAX_
NODE_ N - MAX_
SIZE - MIN_
SIZE - Logical size (px) accepted by
crate::orbs::engine::draw_mode_into.
Functions§
- base_
profile - Base (fine) profiles per mode, before preset multipliers.
- draw_
mode - Paint one frame for the given mode into a fresh
Frame. - draw_
mode_ into - Paint one frame for the given mode into an existing
Frame, reusing its buffers. - make_
proj - Shared spin + tilt + orthographic projection.
- sanitize_
mode_ opts - Return a safe copy of
optswith every count-like / radius-like knob finite and within the hard ceilings above. - sanitize_
size - Clamp the logical paint size in pixels.
- scale_
counts - Scale total dot density. 2-D lattices (rings × dots-per-ring) take √scale
each side so the TOTAL scales by
scale. Flat lists scale linearly. - scale_
radii - Scale every key that sets a dot’s rendered radius.
- sort_
dots - Z-sort far→near so nearer dots paint over farther ones.