Use JSON format to implement example that exports Tiger to SVG.

This commit is contained in:
Jürg Lehni 2013-02-12 15:01:35 -08:00
parent fdd15e675f
commit 8b4dda2fc9
2 changed files with 25 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -5,9 +5,10 @@
<title>Tiger</title>
<script type="text/javascript" src="../../dist/paper.js"></script>
<script type="text/paperscript" canvas="canvas">
var then = new Date();
var start = Date.now();
project.importSvg(document.getElementById('svg'));
console.log(new Date() - then);
console.log(Date.now() - start);
console.log(project.toJson({ precision: 2 }));
</script>
</head>
<body>