def pixel.ppm

gralha-svg-render@0.1.0.1 · svg.bend:5101

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import 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"

Uses (6)

Used by (1)