This is Simple java implementation of bucket fill algorithm .Copy the code and Run in Console or IDE. Draw your shapes and click in the middle to fill the shapes.
Precombiled jar for Windows OS
https://sourceforge.net/projects/bucket-fill/files/G_BucketFill.jar/download