mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
web/examples: Add save2tvg
This commit is contained in:
parent
3e6edc3b70
commit
f2b6b44bce
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
<button onclick="destroyAnimation()">Destroy</button>
|
||||
<button onclick="playAnimation()">Play</button>
|
||||
<button onclick="save2gif()">save2gif</button>
|
||||
<button onclick="save2tvg()">save2tvg</button>
|
||||
<div>
|
||||
<label for="reverseCheckbox">Reverse</label>
|
||||
<input type="checkbox" id="reverseCheckbox" onchange="toggleReverse(event)">
|
||||
|
@ -98,6 +99,10 @@
|
|||
function save2gif() {
|
||||
animation.save('gif');
|
||||
}
|
||||
|
||||
function save2tvg() {
|
||||
animation.save('tvg');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue