The SVG file is produced by the following Perl script, which is based on the Logo implementation at Gosper-Kurve.
#!/bin/perluseMath::Trig;# SVG Gosper curve generator by Blotwell# Released under GFDLmy$x=500,$y=2500,$a=90;my$ln=100;printf<<HEREDOC,$x,$y;<?xmlversion="1.0"encoding="UTF-8"standalone="no"?><svgxmlns="http://www.w3.org/2000/svg"version="1.1"width="640px"height="640px"><polylinestroke="red"stroke-width="10"fill="none"transform="scale(0.1)"points="%i,%iHEREDOCrg(4);print <<HEREDOC;"/></svg>HEREDOCsubp{printf" %i,%i",$x,$y;}subfd{my$n=shift;$x+=$n*cos(deg2rad($a));$y-=$n*sin(deg2rad($a));p();}subtl{$a+=shift;}subrt{$a-=shift;}subgl{my$st=-1+shift;if($st<0){fd($ln);return}tl(60);rg($st);rt(60);gl($st);gl($st);rt(120);gl($st);rt(60);rg($st);tl(120);rg($st);tl(60);gl($st);}subrg{my$st=-1+shift;if($st<0){fd($ln);return;}rg($st);rt(60);gl($st);rt(120);gl($st);tl(60);rg($st);tl(120);rg($st);rg($st);tl(60);gl($st);rt(60);}
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse