mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Use JSON format to implement example that exports Tiger to SVG.
This commit is contained in:
parent
fdd15e675f
commit
8b4dda2fc9
2 changed files with 25 additions and 2 deletions
22
examples/SVG Export/Tiger.html
Normal file
22
examples/SVG Export/Tiger.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue