def cover.density

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

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

4226# ---- pattern tiles ----
4227# Device pixels per pattern unit along the denser tile axis; m maps pattern space to device.
4228def cover.density(+m: Matrix, +frame: Raster) -> F32:
4229  Matrix{a, b, c, d, e, f} = m
4230  (U.max(F32.sqrt((a * a + b * b : F32)), F32.sqrt((c * c + d * d : F32))) / raster.scale(frame) : F32)

Uses (9)

Used by (1)