code wiki / _hdl_build / nx_viz_color.nx

nx_viz_color.nx

buildroot/runtime/_hdl_build/nx_viz_color.nx

1691 B36 linesdepth 2pulls 2 transitivereach 5 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_color.nx -- the COLOR-SPACE layer of the sovereign Nishi viz library (the d3-color/d3-scale-chromatic core, bits-up). HSL -> RGB conversion (pure integer, permil arithmetic) + an evenly-spaced categorical palette. Enables real sequential/categorical color ramps instead of hardcoded fills. Closes color-space. license_tier: ORIGINAL

dependencies 1 imports · 5 importers

nx_syscalls.nx nx_viz_color.nx nx_viz_chord_page.nx nx_viz_color_gate.nx nx_viz_graph.nx nx_viz_icicle.nx nx_viz_sankey_page.nx

imports: nx_syscalls.nx

imported by: nx_viz_chord_page.nxnx_viz_color_gate.nxnx_viz_graph.nxnx_viz_icicle.nxnx_viz_sankey_page.nx

structs

none

consts

5const K_MAGIC_2000: i64 = 2000

functions

8func vc_hsl_rgb(h: i64, s: i64, l: i64) -> i64
called by 2: vc_categoricalmain
31func vc_categorical(i: i64, n: i64) -> i64
called by 5: mainmainmainmainmain calls 1: vc_hsl_rgb
36func main() -> i64 { return 0 }