code wiki / _hdl_build / nx_viz_ease.nx

nx_viz_ease.nx

buildroot/runtime/_hdl_build/nx_viz_ease.nx

924 B17 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_viz_ease.nx nx_viz_ease_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_ease_gate.nx

structs

none

consts

5const K_MAGIC_2000: i64 = 2000

functions

7func ve_linear(t: i64) -> i64 { return t }
called by 1: main
8func ve_cubic_in(t: i64) -> i64 { return t * t / 1000 * t / 1000 }
10func ve_cubic_inout(t: i64) -> i64
called by 1: main
16func ve_at(start: i64, end: i64, t: i64) -> i64 { return start + (end - start) * t / 1000 }
called by 1: main
17func main() -> i64 { return 0 }