Png.png.channels: def of gralha-png-decode@0.1.0.1 Import: import gralha-png-decode@0.1.0.1/png.bend as Png Lines 47-48 of gralha-png-decode@0.1.0.1/png.bend: https://jend.leeeet.dev/read.txt?path=gralha-png-decode@0.1.0.1/png.bend&start_line=47&end_line=48 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def png.channels(+kind: U32) -> U32: U.choose(U32, U32.is_eq(kind, 2), 3, U.choose(U32, U32.is_eq(kind, 4), 2, U.choose(U32, U32.is_eq(kind, 6), 4, 1))) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=choose