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