Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
How to change canvas background color in imagemaker plugin

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);
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda