def subpaths

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

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

1265def subpaths(es: List<&2, Edge>) -> List<&2, Subpath>:
1266  match es:
1267    case Nil{}: Nil{}
1268    case Con{Edge{ax, ay, bx, by, stroked, closed}, rest}: subpaths.go(edge.kind(stroked, closed), ax, ay, bx, by, rest, Sub{Nil{}, Nil{}})

Uses (6)

Used by (1)