Does anybody know how I can get a costumes data URI inside of turbowarp? #626
Replies: 1 comment 2 replies
-
You can just do const url = vm.runtime.targets[0].sprite.costumes[0].asset.encodeDataURI(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
let ps_sp=vm.runtime.targets[t]; let ps_cs=ps_sp.sprite.costumes[c].asset.data; return ps_cs
Here is what I've been using to get the costume data but that returns raw bit data.
Does anybody know how I could get a PNG or SVG URI out of this data?
Beta Was this translation helpful? Give feedback.
All reactions