code wiki / _hdl_build / nx_viz_color.nx
nx_viz_color.nx
buildroot/runtime/_hdl_build/nx_viz_color.nx
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
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
| 5 | const K_MAGIC_2000: i64 = 2000 |
functions
| 8 | func vc_hsl_rgb(h: i64, s: i64, l: i64) -> i64 |
| 31 | func vc_categorical(i: i64, n: i64) -> i64 |
| 36 | func main() -> i64 { return 0 } |