I was almost completing with jQuery draggable and droppable generator image, but the html2canvas does not download with css filters
I'm starting over from scratch, I'm having trouble understanding how to drag images into the drop, using html5 canvas. I also want to enter text to Appear on the canvas And Then be possible drag and also change their properties (font, size, color)
https://jsfiddle.net/xn5n9cos/2/
var canvas = document.getElementById("DropHere");
var ctx = canvas.getContext("2d");
ctx.font = "100px arial";
ctx.strokeText("Test", 50, 100);
function allowDrop(ev) {
ev.preventDefault();
}
function drag(ev) {
ev.dataTransfer.setData("Text",ev.target.class);
}
function drop(ev) {
var data = ev.dataTransfer.getData("Text"); ev.target.appendChild(document.getElementByClass(data)); ev.preventDefault();
}
Of course I need to understand how to apply filters on each drag object
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter
Thanks for any help