code wiki / (root) / nx_xfade_demo.nx

nx_xfade_demo.nx

buildroot/runtime/nx_xfade_demo.nx

3531 B80 linesdepth 8pulls 17 transitivereach 0 importersview sourcekind sketch/demo
docsdependenciesstructsconstsfunctions

about

nx_xfade_demo.nx -- VISIBLE proof of R4: crossfade two REAL gallery photos with the SMOOTHSTEP curve and write 5 BMPs (0/25/50/75/100%) you can open on Windows to SEE the smooth dissolve. Decodes real PNGs, blends via nx_xfade_frame, writes via nx_bmp. Sovereign throughout. Output: knowledge/staging/media/xfade_0.bmp .. xfade_4.bmp license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_image.nx nx_png_decoder.nx nx_gradient_blend.nx nx_transition.nx nx_bmp.nx nx_xfade_demo.nx

imports: nx_syscalls.nxnx_image.nxnx_png_decoder.nxnx_gradient_blend.nxnx_transition.nxnx_bmp.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

14func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
15func gn(v: i64) -> i64
29func png2img(path: *u8) -> *Image
46func main() -> i64