code wiki / _hdl_build / nx_viz_ease.nx
nx_viz_ease.nx
buildroot/runtime/_hdl_build/nx_viz_ease.nx
about
nx_viz_ease.nx -- the EASING math core of the INTERACTION layer (the d3-transition/d3-ease core, bits-up).
Easing functions over normalized time t in permil [0,1000] -> eased permil, + interpolate-at. Pure integer ->
WASM-deployable. Closes anim-transition (the timing math; the RAF tick is the thin browser glue). license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_viz_ease_gate.nx
structs
| none |
consts
| 5 | const K_MAGIC_2000: i64 = 2000 |
functions
| 7 | func ve_linear(t: i64) -> i64 { return t } called by 1: main |
| 8 | func ve_cubic_in(t: i64) -> i64 { return t * t / 1000 * t / 1000 } |
| 10 | func ve_cubic_inout(t: i64) -> i64 called by 1: main |
| 16 | func ve_at(start: i64, end: i64, t: i64) -> i64 { return start + (end - start) * t / 1000 } called by 1: main |
| 17 | func main() -> i64 { return 0 } |