def raster.tile.box

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

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

4050def raster.tile.box(+format: Raster, +x: U32, +y: U32, size: U32) -> Bounds:
4051  +n = U32.to_f32(size)
4052  +xx = U32.to_f32(x)
4053  +yy = U32.to_f32(y)
4054  bounds.point(bounds.point(bounds.empty(), raster.position(format, xx, yy)), raster.position(format, (xx + n : F32), (yy + n : F32)))

Uses (9)

Used by (3)