def cover.pixel

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

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

4085def cover.pixel(+frame: Raster, p: Point) -> Point:
4086  Raster{Point{ox, oy}, step, width, height, depth, linear, pixels} = frame
4087  Point{x, y} = p
4088  +stepDup = step
4089  Point{((x - ox) / stepDup : F32), ((y - oy) / stepDup : F32)}

Uses (5)

Used by (2)