Search code examples
androidcolor-picker

Coloring Images through a Palette Android


I was wondering is there a way to color the images dynamically through a palette?

The coloring being similar to the bucket in paint i.e. [coloring areas bounded by outlines]

I want to color different images e.g. a kid, a tree etc. the user should be able to color the face of the kid by any color on the palette [making it similar to the bucket in MS Paint], but I am lost on how to achieve it.

Thanks in advance!


Solution

  • Implement the Flood Fill algorithm :)