def cover.tile.center

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

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

4239# Pixel centers wrap into the tile, so a partial last column or row shows the tile's start.
4240def cover.tile.center(+frame: Raster, +x: U32, +y: U32, +w: F32, +h: F32) -> Point:
4241  cover.tile.wrapped(raster.position(frame, (U32.to_f32(x) + 0.5 : F32), (U32.to_f32(y) + 0.5 : F32)), w, h)
4242
4243@unsafe

Uses (8)

Used by (1)