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

347
Visualizações
How to clear specific line in canvas using Javascript?

I'm looking for a way to delete a specific line without clearing and redrawing it. How to clear specific line in Canvas : HTML5 I saw this question but everyone said you must clear all the page and redraw. but is there a better way without drawing and clearing?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is definitely a way! Try entering the coordinates of the sentences x and y and its width and height. This way you can clear only a portion of canvas. ctx.clearRect() actually clears a rectangle on the canvas and is used to clear the whole canvas by giving it 0 as the x, 0 as the y and giving it the width and height of canvas.

about 4 years ago · Juan Pablo Isaza Relatório
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