Discord
Login
Community
DARK THEME

Draw with png raw data

I have a string that has the data of a png and I'd like to be able to draw.

If you have an image you can convert it to Data URL . Item DataUrl pass to another image to display .

https://microstudio.dev/i/TinkerSmith/pixianim/

or

let img = new Image();

img.src = 'data:image/png;base64,AAAAAABBBBBBBB...'; 

In pure JavaScript you can do this.

In MicroScript I also saw that there is a scr field but now I can't find what path it has.


Edit

If you want to manipulate pixels see this example .

https://microstudio.dev/i/joyrider3774/plasma/

https://microstudio.dev/i/joyrider3774/fire/

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community