Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!