def paint.cover

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

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

5566# A shape's coverage mask on the frame grid, painted with its brush.
5567def paint.cover(fb: Array<U32>, +cov: Cover, +tg: Target, +ctx: PaintCtx) -> Array<U32>:
5568  Cover{Cov.CovMask{gx, gy, w, h, size, depth, data, present}, origin, step} = cov
5569  paint.data.if(present, data, fb, gx, gy, w, h, size, tg, ctx)

Uses (7)

Used by (2)