Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks great. Would be interesting to add to blogging software to allow a quick sketch to be added to a post.

How would you go about persisting the canvas? json encoded output?



Thanks! By default the base64 string of the canvas image is stored in session storage to make the canvas persistent.


Leimi, any simple way to use a base64 image as background?


you can set a `background` option when creating a drawingboard - if I did things well, setting it as the base64 string should do it!


Thanks, it works!


How is it stored when using the undo/redo buttons?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: