def pixel.white

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

5179# The pixel over white as the packed 0xRRGGBB the outputs use.
5180def pixel.white(+px: U32) -> U32:
5181  +a = pixel.lane(px, 16777216)
5182  ((pixel.lane(px, 1) + 255 - a) * 65536 + (pixel.lane(px, 256) + 255 - a) * 256 + pixel.lane(px, 65536) + 255 - a : U32)

Uses (5)

Used by (1)