def paint.solid.row.mode

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

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

5489# A solid brush with a uniform clip limit paints runs straight: the front
5490# for full coverage is packed once per shape, a partial run packs its own,
5491# and an opaque front is written without a read.
5492def paint.solid.row.mode(opaque: Bool, fb: Array<U32>, +i: U32, +cols: Nat, +front: U32) -> Array<U32>:
5493  match opaque:
5494    case True{}: set.row(fb, cols, i, front)
5495    case False{}: fill.row(fb, cols, i, front)

Uses (6)

Used by (1)