turtlestitch/stitchcode/turtlestitch.js

19 wiersze
566 B
JavaScript
Czysty Zwykły widok Historia

2017-01-19 22:00:37 +00:00
2017-01-20 09:32:01 +00:00
turtleShepherd = new TurtleShepherd();
2017-01-19 22:00:37 +00:00
DEBUG = true;
function reDraw(cnv) {
//load a svg snippet in the canvas with id = 'svg'
//canvas = document.getElementById('svg');
2017-01-19 22:00:37 +00:00
//document.getElementById("code").innerHTML = cmdCache.toSVG();
// document.getElementById("svg2").innerHTML = turtleShepherd.toSVG();
2017-01-19 22:00:37 +00:00
//canvg(document.getElementById('svg'), cmdCache.toSVG());
2017-01-20 09:32:01 +00:00
//canvg(cnv, cmdCache.toSVG());
2017-01-19 22:00:37 +00:00
//var cnv = caller.parent.penTrails();
//var ctx = cnv.getContext('2d');
//ctx.drawSvg(cmdCache.toSVG(), 0, 0, cnv.width, cnv.height);
}