code wiki / _hdl_build / nx_glyph_word.nx

nx_glyph_word.nx

buildroot/runtime/_hdl_build/nx_glyph_word.nx

3421 B70 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_glyph_word.nx -- RUNG 1 proof: render "nishi" (lowercase, the brand) with the STROKE PEN. Each letter is just centerline polylines + a width -> the n/h arches and the s-spine (the HARD curvy bits) are trivial. Renders AA -> _offc/nx_aa_nishi.png. This is the builder unit that scales to kanji (kanji strokes are the same).

dependencies 3 imports · 0 importers

nx_glyph_stroke.nx nx_aa_raster.nx nx_png_write.nx nx_glyph_word.nx

imports: nx_glyph_stroke.nxnx_aa_raster.nxnx_png_write.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gs_init_trig put_stroke gs_stroke gs_seg gs_isqrt gs_disc gs_disc ↻ aa_render aa_inside aa_blit nx_png_write_rgb sys_openat_wr sys_mmap sys_write pw_chunk pw_u32be sys_mmap ↻ sys_write ↻ sys_write ↻ pw_crc_block pw_adler32 sys_close

structs

none

consts

7const K_MAGIC_8192: i64 = 8192
8const K_MAGIC_1024: i64 = 1024

functions

11func put_stroke(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, cs: *i64, sn: *i64, ptsx: *i64, ptsy: *i64, n: i64, w: i64) -> i64
called by 1: main calls 1: gs_stroke
16func main() -> i64