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

189
Visualizações
Is there a way to create a Flood fill (bucket fill) on "Non geometric shapes" using HTML canvas

I was trying to create a function that can fill an area like the bucket/fill option on the paint application.

Here is another example of what I'm trying to create (from skribbl.io).enter image description here

I already have code that draws and create shapes and everything, here is the code snippet in case you wanted to test it, it's messy and not organized because I didn't finish creating the project yet, therefore if you know how to create a function to fill a closed area like shown in the image that would be appreciated.

Codepen: https://codepen.io/karimx32/pen/dyZewPE
Live example of what I need (video): https://ultrax-yt.com/assets/example.mov

so what I need is to create something like:

function fill() {
    // code that will fill the area when I click on it
}
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