Is there a javascript library which lets me draw on a web page and then save the state of that drawing?
I want to draw an 2D image using the mouse and then how to store and load that drawing
Is there a javascript library which lets me draw on a web page and then save the state of that drawing?
I want to draw an 2D image using the mouse and then how to store and load that drawing
You should look at ProcessingJS.
Use HTML5 Canvas. A simple example for drawing images is here: http://jsfiddle.net/ghostoy/wTmFE/1/.
I recommend this online book: Dive Into HTML5.
If you want the free drawing to work with touchscreens, I recommend Fabric.js:
Code:
See JSfiddle