code wiki / _hdl_build / nx_char_identity_sheet.nx

nx_char_identity_sheet.nx

buildroot/runtime/_hdl_build/nx_char_identity_sheet.nx

13249 B270 linesdepth 4pulls 9 transitivereach 0 importersview sourcekind tooltopic char
docsdependenciesstructsconstsfunctions

about

nx_char_identity_sheet.nx -- the LOOK-AT-IT proof for the identity vector. Numeric gates cannot see framing (this lane has been burned 3x by that), so this emits the sheet a character artist would ask for: ONE identity rendered across four art styles (she must stay recognisably herself), a CAST row of distinct identities (they must not be one woman recoloured), and a genetics row showing sisters whose alleles differ. Every figure is drawn from the SAME dial vector via the same draw call. license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_char_identity.nx nx_game_raster.nx nx_game_art.nx nx_game_critic.nx nx_anatomy_critic.nx nx_png_write.nx nx_char_identity_sheet.nx

imports: nx_syscalls.nxnx_char_identity.nxnx_game_raster.nxnx_game_art.nxnx_game_critic.nxnx_anatomy_critic.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 sys_mmap art_nebula art_clampb gr_pack gr_pack ↻ gr_rect idv_from_seed sys_mmap ↻ idv_rng idv_key draw_figure sys_mmap ↻ idv_style_params fig_ell idv_clamp gr_px gr_pack ↻ gr_disc gr_px ↻ gr_pack ↻ idv_style_name gx_set idv_from_companion idv_from_seed ↻ gx_poly_dose gx_expressed gx_epi_marked gx_phenotype gx_a0 gx_a1 gx_mode gx_mode ↻ gx_sex gx_sexgene sheet_png sys_mmap ↻ nx_png_write_rgb sys_openat_wr sys_mmap ↻

structs

none

consts

15const SW: i64 = 720
16const SH: i64 = 460

functions

18func sp2(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: snlmain calls 1: sys_write
19func sn2(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
33func snl() -> i64 { sp2("\n" as *u8); return 0 }
called by 1: main calls 1: sp2
35func isqrt2(n: i64) -> i64
44func fig_ell(fb: *i64, cx: i64, cy: i64, rx: i64, ry: i64, r: i64, g: i64, b: i64) -> i64
called by 1: draw_figure calls 3: idv_clampgr_pxgr_pack
71func draw_figure(fb: *i64, idv: *i64, style: i64, ox: i64, oy: i64, hgt: i64) -> i64
144func sheet_png(fb: *i64, path: *u8) -> i64
called by 1: main calls 2: sys_mmapnx_png_write_rgb
158func main() -> i64