code wiki / _hdl_build / nx_face_r2.nx
nx_face_r2.nx
buildroot/runtime/_hdl_build/nx_face_r2.nx
about
nx_face_r2.nx -- photoreal ladder R2: a HEAD close-up with sculpted facial features (sdf_head), scored by
the SAME critic axes as the body so movement is MEASURED, not eyeballed (operator: the critic drives the
climb). Reports fine_detail + structure + chroma + head-region-detail (the face_structure proxy) + overall
MIN verdict, and compares to the body's 62/1000 CLAY. Writes knowledge/nx_face.png. GREEN = it renders +
scores (NOT that it's photoreal). license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_sdfrender.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
| none |
functions
| 10 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func pn(v: i64) -> i64 |
| 20 | func fclamp(v: i64) -> i64 { if v < 0 { return 0 } if v > 1000 { return 1000 } return v } called by 1: main |
| 21 | func fabsi(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 22 | func flum(g: i64) -> i64 { return ((g & 255) + ((g >> 8) & 255) + ((g >> 16) & 255)) / 3 } called by 1: f_fine |
| 23 | func ffg(g: i64) -> i64 { let r: i64 = g & 255; let b: i64 = (g >> 16) & 255; if r >= b { return 1 } return 0 } |
| 24 | func fchroma(g: i64) -> i64 called by 1: f_chroma |
| 30 | func f_fine(fb: *i64, w: i64, h: i64) -> i64 |
| 48 | func f_chroma(fb: *i64, w: i64, h: i64) -> i64 |
| 59 | func main() -> i64 |