I am using an imageMaker plugin.This is the reference link of the plugin. https://www.jqueryscript.net/other/image-merge-edit-draw-maker.html In this instead of changing and editing on an image I have to change the canvas background color. In the js file there is an option to make it full black. But it is also Image. I want to basically make the canvas fill with color instead of Image.
canvas_info.templates.push({url:'data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs',
'title': 'Empty black'});
I commented MemeGeneratorAPI.canvas_addimage(); in js file and tried adding the below code to replace with color. But it didn't work. Looking for a solution for this. Thanks in advance!
// MemeGeneratorAPI.canvas_addimage();
canvas_info.ctx.rect(20,20, image_info.width, image_info.height);
canvas_info.ctx.stroke();
canvas_info.ctx.fillStyle = "#FF0000";
canvas_info.ctx.fillRect(20, 20, image_info.width, image_info.height);