Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lukeholder
on Sept 25, 2013
|
parent
|
context
|
favorite
| on:
Show HN: Drawingboard.js
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?
manuhabitela
on Sept 25, 2013
[–]
Thanks! By default the base64 string of the canvas image is stored in session storage to make the canvas persistent.
jonas_b
on Sept 25, 2013
|
parent
|
next
[–]
Leimi, any simple way to use a base64 image as background?
manuhabitela
on Sept 25, 2013
|
root
|
parent
|
next
[–]
you can set a `background` option when creating a drawingboard - if I did things well, setting it as the base64 string should do it!
jonas_b
on Sept 26, 2013
|
root
|
parent
|
next
[–]
Thanks, it works!
Kiro
on Sept 25, 2013
|
parent
|
prev
[–]
How is it stored when using the undo/redo buttons?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
How would you go about persisting the canvas? json encoded output?