pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

flood fill

Open robertpfeiffer opened this issue 1 year ago • 1 comments
trafficstars

Flood fill drawing operation, like in GIMP and ASEprite.

This still needs docs and tests, and perhaps some more special-case handling of indexed surfaces. Can take a pattern surface as color argument. If you like this, maybe we can add pattern surfaces to polygons also, but in a pinch, you can draw a polygon and then use flood fill, or draw a polygon on an intermediate surface, use flood fill, and then blit the surface.

One thing this can't do that you can do in GIMP is gradients.

robertpfeiffer avatar May 05 '24 08:05 robertpfeiffer