dev-2.0-svg
Michael Aschauer 2017-01-21 13:12:13 +01:00
rodzic e0196a8a65
commit e1f99fc587
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -279,10 +279,10 @@ TurtleShepherd.prototype.toSVG2 = function() {
if (this.cache[i].cmd == "move") {
stitch = this.cache[i];
if (stitch.penDown || this.showJumpStitches)
svgStr += '<line x1="'+ prevX +
'" y1="'+ prevY +
'" x2="' + stitch.x +
'" y2="' + stitch.y;
svgStr += '<line x1="'+ Math.round(prevX) +
'" y1="'+ Math.round(prevY) +
'" x2="' + Math.round(stitch.x) +
'" y2="' + Math.round(stitch.y);
if (stitch.penDown)
svgStr +='" stroke-linecap="round" style="stroke:rgb(0,0,0);stroke-width:1" />\n';

Wyświetl plik

@ -0,0 +1,3 @@
turtleShepherd = new TurtleShepherd();
DEBUG = false;