code wiki / _hdl_build / nx_adnet_banner_gen.nx
nx_adnet_banner_gen.nx
buildroot/runtime/_hdl_build/nx_adnet_banner_gen.nx
about
nx_adnet_banner_gen.nx -- GENERATOR: sovereign 728x90 house-ad PNG creatives for the adnet slot
(build generators, not hand-authored artifacts). Pure pixels: vertical gradient + accent frame +
centered scaled 8x8 sovereign font text -> nx_png_write_rgb. Self-verifying: each emitted file is
read back and must carry the PNG magic + plausible size, else exit 1 (no fabricated greens).
Output: knowledge/staging/adnet/adnet_ha_{torrent,library,video,world}.png
expect_exit: 0 license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_png_write.nxnx_png.nxnx_font8x8.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
| 11 | const ABG_MAGIC_65536: i64 = 65536 |
| 13 | const ABG_W: i64 = 728 |
| 14 | const ABG_H: i64 = 90 |
functions
| 16 | func abg_px(buf: *u8, x: i64, y: i64, r: i64, g: i64, b: i64) -> i64 |
| 29 | func abg_bg(buf: *u8, r: i64, g: i64, b: i64, ar: i64, ag: i64, ab: i64) -> i64 |
| 62 | func abg_text(buf: *u8, t: *u8, text: *u8, ox: i64, oy: i64, s: i64, r: i64, g: i64, b: i64) -> i64 |
| 101 | func abg_tlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: abg_emit |
| 104 | func abg_emit(path: *u8, title: *u8, sub: *u8, r: i64, g: i64, b: i64, ar: i64, ag: i64, ab: i64) -> i64 |
| 152 | func abg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 154 | func main() -> i64 |