def comp.factor.if
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5644# The mask factor at index i: one without a mask, else from the mask layer's pixel.
5645def comp.factor.if(read: Bool, mask: Array<U32>, +i: U32, +mode: U32) -> Array<U32> & F32:
5646 match read:
5647 case True{}: comp.factor.got(Array.get(U32, mask, i), mode)
5648 case False{}: (mask, 1.0)