Peano curve: Difference between revisions

(→‎{{header|jq}}: Add turtle graphics solution)
Line 618:
"</svg>";
def path($fill; $stroke; $width):
"<path fill=\"\($fill)\" stroke=\"\($stroke)\" stroke-width=\"0.1\($width)\" d=\"\(.svg)\" />";
 
def draw:
path("none"; "red"; "0.1") | svg(100) ;</lang>
 
====Peano Curve====
<lang jq># Compute the curve using a Lindenmayer system of rules
2,469

edits