def target.index

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

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

5131def target.index(+t: Target, +px: U32, +py: U32) -> U32:
5132  Target{x, y, w, h} = t
5133  ((py - y) * w + px - x : U32)

Uses (5)

Used by (5)