def cover.block

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

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

5228# A clip's coverage over the device pixel block [x0, x1) by [y0, y1) when it is
5229# uniform there, else -1; the frame grid is the device grid.
5230def cover.block(+cov: Cover, +x0: U32, +y0: U32, +x1: U32, +y1: U32) -> F32:
5231  Cover{mask, origin, step} = cov
5232  Cov.mask.uniform(mask, x0, y0, x1, y1)

Uses (4)

Used by (1)