def path.step

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

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

478# A command applied to the path: 0 nothing (before the first command),
479# 1 a close, 2 a drawing command with its numbers.
480def path.step(kind: U32, p: Path, +cmd: U32, vs: List<&2, F32>) -> Path:
481  match kind:
482    case 0: p
483    case 1: path.close(p)
484    case _: path.apply(p, cmd, upper(cmd), vs)

Uses (10)

Used by (1)