Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda