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;<svgxmlns="http://www.w3.org/2000/svg"width="640px"height="640px"><polylinestroke="black"stroke-width="30"stroke-linejoin="round"fill-opacity="0"transform="scale(0.1)"points="%i,%i,HEREDOCrg(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);}
Llicència
Public domainPublic domainfalsefalse
Jo, el titular del copyright d'aquesta obra, l'allibero al domini públic. Això s'aplica a tot el món. En alguns països això pot no ser legalment possible, en tal cas: Jo faig concessió a tothom del dret d'usar aquesta obra per a qualsevol propòsit, sense cap condició llevat d'aquelles requerides per la llei.
Llegendes
Afegeix una explicació d'una línia del que representa aquest fitxer