pygame-ce
pygame-ce copied to clipboard
flood fill
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.