def outline.loop
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
1640# A closed subpath: one closed loop per side, each joined at the start vertex.
1641def outline.loop(+xs: List<&2, Segment>, +r: F32, +js: Joins, +scale: F32, acc: List<&2, Edge>) -> List<&2, Edge>:
1642 match xs:
1643 case Nil{}: acc
1644 case Con{h, t}:
1645 +first = h
1646 outline.edges(outline.side(Con{h, t}, Some{prev.of(segments.last(t, first), r)}, True{}, r, js, scale, Nil{}), acc)