How to fill image segments with different textures?

Viewed 8

I have a function to use flood-fill to fill image segments with different color. How can I fill the segments with different textures, as shown by the picture?

enter image description here

0 Answers
Related