kopia lustrzana https://github.com/backface/turtlestitch
readding
rodzic
e0196a8a65
commit
e1f99fc587
|
@ -279,10 +279,10 @@ TurtleShepherd.prototype.toSVG2 = function() {
|
||||||
if (this.cache[i].cmd == "move") {
|
if (this.cache[i].cmd == "move") {
|
||||||
stitch = this.cache[i];
|
stitch = this.cache[i];
|
||||||
if (stitch.penDown || this.showJumpStitches)
|
if (stitch.penDown || this.showJumpStitches)
|
||||||
svgStr += '<line x1="'+ prevX +
|
svgStr += '<line x1="'+ Math.round(prevX) +
|
||||||
'" y1="'+ prevY +
|
'" y1="'+ Math.round(prevY) +
|
||||||
'" x2="' + stitch.x +
|
'" x2="' + Math.round(stitch.x) +
|
||||||
'" y2="' + stitch.y;
|
'" y2="' + Math.round(stitch.y);
|
||||||
|
|
||||||
if (stitch.penDown)
|
if (stitch.penDown)
|
||||||
svgStr +='" stroke-linecap="round" style="stroke:rgb(0,0,0);stroke-width:1" />\n';
|
svgStr +='" stroke-linecap="round" style="stroke:rgb(0,0,0);stroke-width:1" />\n';
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
turtleShepherd = new TurtleShepherd();
|
||||||
|
DEBUG = false;
|
Ładowanie…
Reference in New Issue