Skip to content

Commit e99387c

Browse files
committed
revert change to turtle shell introduced in bezier patch
1 parent c83dd1b commit e99387c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

js/turtle.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,14 @@ function Turtle (name, turtles, drum) {
566566
}
567567

568568
if (this.skinChanged) {
569-
this.doTurtleShell(55, TURTLEBASEPATH + 'turtle-' + i.toString() + '.svg');
569+
var artwork = TURTLESVG;
570+
if (sugarizerCompatibility.isInsideSugarizer()) {
571+
artwork = artwork.replace(/fill_color/g, sugarizerCompatibility.xoColor.fill).replace(/stroke_color/g, sugarizerCompatibility.xoColor.stroke);
572+
} else {
573+
artwork = artwork.replace(/fill_color/g, FILLCOLORS[i]).replace(/stroke_color/g, STROKECOLORS[i]);
574+
}
575+
576+
this.doTurtleShell(55, 'data:image/svg+xml;base64,' + window.btoa(unescape(encodeURIComponent(artwork))));
570577
this.skinChanged = false;
571578
}
572579
}

0 commit comments

Comments
 (0)