In Construct 3 I would like to create a coloring book app and allow the user to flood fill (like a paint bucket) areas of the same color on a sprite bitmap until a different boundary color is reached. Does Construct 3 have this capability built-in or does it need to be coded from scratch?
Here's this:
construct.net/en/make-games/addons/252/tilemap-flood-fill
Per pixel operations are still a bit too slow for a floodfill, so this would be the closest viable solution.
I made a psuedo coloring book example a long time ago, where you have to slice up the colorable pieces yourself as different sprites, and set a filter to "color" them. Could be a lot of up front work, depending on the scope of your project and how comfortable you are with other imaging software to create the slices.
dropbox.com/s/l1wwv4ed2midjdk/coloring.capx
I made a basic color book example with the drawing canvas behavior. The Flood Fill algorithm is very slow and basic, there a better ones. But maybe it gives an idea how to do it.
https://drive.google.com/file/d/1BNkGEShu8OPmyzxdtquQ9FHpC4HDhmo_/view
Develop games in your browser. Powerful, performant & highly capable.
Asmodean-Thanks so much for your example. It will be a help as I learn a way to accomplish this.