def paint.block.mode
gralha-svg-render@0.1.0.1 · svg.bend:5391
import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
5391def paint.block.mode(direct: Bool, fb: Array<U32>, +x0: U32, +y0: U32, +rows: Nat, +cols: Nat, +v: F32, +known: F32, +t: Target, +ctx: PaintCtx) -> Array<U32>:
5392 match direct:
5393 case True{}:
5394 +front = pixel.pack(paint.ctx.tint(ctx), U.min(v, known))
5395 fill.rows.mode(U32.is_eq(U32.div(front, 16777216), 255), fb, rows, x0, y0, cols, t, front)
5396 case False{}: paint.rows(fb, rows, x0, y0, cols, v, known, t, ctx)