I want to create an drag and drop function within html5 canvas.
This is want I want:
http://jqueryui.com/draggable/
But in html5 canvas.
I have searched on the web, but only found drag and drop tutorials without droppable field
I want to create an drag and drop function within html5 canvas.
This is want I want:
http://jqueryui.com/draggable/
But in html5 canvas.
I have searched on the web, but only found drag and drop tutorials without droppable field
To drag elements, you have to save the coordinates of the shapes you are drawing.
Here is a nice tutorial from simon sarris http://simonsarris.com/blog/510-making-html5-canvas-useful
There are different ways of doing this, but if you want something more specific, you'll have to explain us what you really want, or at least post some code. Good luck !