def pixel.ppm
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5101# Portable image export for headless rendering and reference comparisons.
5102def pixel.ppm(c: U32) -> String:
5103 +rgb = c
5104 U32.show((rgb / 65536 % 256 : U32)) ++ " " ++ U32.show((rgb / 256 % 256 : U32))
5105 ++ " " ++ U32.show((rgb % 256 : U32)) ++ "\n"