def comp.factor.if

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

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

Uses (8)

Used by (1)