Mercurial > pygame
diff src/pixelarray.doc @ 990:404e3a0be4f8
Added PixelArray.extract() method.
| author | marcus |
|---|---|
| date | Fri, 04 Apr 2008 10:15:24 +0000 |
| parents | 1bbdc02af359 |
| children | 684d96c73d0d |
line wrap: on
line diff
--- a/src/pixelarray.doc Fri Apr 04 08:04:49 2008 +0000 +++ b/src/pixelarray.doc Fri Apr 04 10:15:24 2008 +0000 @@ -98,7 +98,19 @@ PixelArray.replace (color, replacecolor): Return None Replaces the pixels with the passed color in the PixelArray by changing -them them to the passed replacement color. +them them to the passed replacement color. The replacement is done +in place on the PixelArray. + +New in pygame.1.8.1. +<END> + +extract +Extracts the passed color in the PixelArray. +PixelArray.extract (color): Return None + +Extracts the passed color by changing all matching pixels to white, +while non-matching pixels are changed to black. The extraction is +done in place on the PixelArray. New in pygame.1.8.1. <END>
