code wiki / _hdl_build / nx_viz_chord_page.nx
nx_viz_chord_page.nx
buildroot/runtime/_hdl_build/nx_viz_chord_page.nx
about
nx_viz_chord_page.nx -- COMPOSED live CHORD diagram: parse a flow-matrix TSV (label + row per line), lay out
with nx_viz_chord (group arcs + sub-arcs), draw chords (quadratic curves through the centre) UNDER group bands
(stroked arcs), coloured per group (nx_viz_color), via nx_viz_trig for angle->point. Self-contained HTML for
the wiki. usage: nx_viz_chord_page [in.tsv] [out.html]. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_viz_chord.nxnx_viz_shape.nxnx_viz_color.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const K_MAGIC_10000: i64 = 10000 |
| 10 | const K_MAGIC_2048: i64 = 2048 |
| 11 | const K_MAGIC_262144: i64 = 262144 |
| 12 | const K_MAGIC_18000: i64 = 18000 |
functions
| 14 | func cw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 15 | func emit_hex6(out: *u8, off: i64, color: i64) -> i64 called by 1: main |
| 27 | func atoi_rng(buf: *u8, s: i64, e: i64) -> i64 called by 1: main |
| 32 | func pt_x(cx: i64, r: i64, centideg: i64) -> i64 { return cx + (r * vs_cos(centideg / 100)) / K_MAGIC_10000 } |
| 33 | func pt_y(cy: i64, r: i64, centideg: i64) -> i64 { return cy + (r * vs_sin(centideg / 100)) / K_MAGIC_10000 } |
| 35 | func main(argc: i64, argv: *i64) -> i64 |