Skip to main content

Module runtime

Module runtime 

Source

Modules§

phase
Phase indices for ling_phase_add.

Structs§

Interpreter
UiTheme
Customizable colour palette for the vector UI toolkit (packed 0x00RRGGBB). ui_theme(...) sets it; every widget falls back to these and accepts a trailing r,g,b override.

Enums§

Value

Functions§

init_aot_runtime
Initialize the AOT/JIT runtime. Must be called before any AOT-compiled code. Creates a new interpreter instance for runtime function dispatch.
line_hue_phase
Current hue phase (radians) for line strokes, or None when the cycle is off. Elapsed is computed in f64 (epoch seconds are huge) before the caller casts to f32, so sin keeps precision across a long session.
ling_phase_add
now_secs
Returns seconds since Unix epoch. On wasm32 uses js_sys::Date::now() (milliseconds / 1000); on native uses SystemTime.
set_line_hue_rate
Enable/disable the wireframe line hue-cycle. rate is in radians/sec (0 = off).