code wiki / _hdl_build / nx_brand_spacescale.nx

nx_brand_spacescale.nx

buildroot/runtime/_hdl_build/nx_brand_spacescale.nx

1658 B35 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_spacescale.nx -- generate a SPACING SCALE (the 4/8pt-grid rhythm) from a base unit: space|1..5 = 1x/2x/3x/5x/8x base (a balanced ramp, every step ON the grid). No-float; valid .brand fragment that feeds the token SSOT and passes the R2 spacing-grid guard BY CONSTRUCTION. REUSE: nx_brand_tokens (bt_app). Library. 100% sovereign. license_tier: ORIGINAL

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_brand_tokens.nx nx_brand_spacescale.nx nx_brand_exceed3_gate.nx nx_brand_spacescale_gate.nx

imports: nx_syscalls.nxnx_brand_tokens.nx

imported by: nx_brand_exceed3_gate.nxnx_brand_spacescale_gate.nx

structs

none

consts

none

functions

8func ss_put_int(out: *u8, pos: i64, cap: i64, v: i64) -> i64
called by 1: ss_emit_one calls 1: sys_mmap
16func ss_emit_one(out: *u8, pos: i64, cap: i64, name: *u8, px: i64) -> i64
called by 1: ss_emit_scale calls 2: bt_appss_put_int
26func ss_emit_scale(base_px: i64, out: *u8, cap: i64) -> i64
called by 2: mainmain calls 1: ss_emit_one