def comp.step2
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5669# One pixel: the layer's pixel (index j in the layer and mask) scaled by opacity
5670# and the mask, over the frame pixel at index i.
5671def comp.step2(rest: Array<U32> & Array<U32>, fb: Array<U32>, +i: U32, +j: U32, +opacity: F32, +mode: U32) -> Array<U32> & (Array<U32> & Array<U32>):
5672 (layer, mask) = rest
5673 comp.pixel.layer.at(Array.get(U32, layer, j), fb, mask, i, j, opacity, mode)