Image.pixels.get: def of gralha-image@0.1.0.1 Import: import gralha-image@0.1.0.1/image.bend as Image Lines 39-46 of gralha-image@0.1.0.1/image.bend: https://jend.leeeet.dev/read.txt?path=gralha-image@0.1.0.1/image.bend&start_line=39&end_line=46 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def pixels.get(xs: Pixels, +size: U32, +x: U32, +y: U32) -> Color: match xs: case Flat{c}: c case Quad{a, b, c, d}: +half = (size / 2 : U32) pixels.get(U.choose(Pixels, U32.is_lt(y, half), U.choose(Pixels, U32.is_lt(x, half), a, b), U.choose(Pixels, U32.is_lt(x, half), c, d)), half, U32.mod(x, half), U32.mod(y, half)) @unsafe Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mod https://jend.leeeet.dev/definition.txt?path=gralha-image@0.1.0.1/image.bend&name=Color https://jend.leeeet.dev/definition.txt?path=gralha-image@0.1.0.1/image.bend&name=Pixels https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=choose