Mercurial > pygame
diff src/pixelarray.doc @ 989:1bbdc02af359
Added PixelArray.replace() method. Moved pixelarray methods into an own source file.
| author | marcus |
|---|---|
| date | Fri, 04 Apr 2008 08:04:49 +0000 |
| parents | 2c37905a2091 |
| children | 404e3a0be4f8 |
line wrap: on
line diff
--- a/src/pixelarray.doc Thu Apr 03 07:12:58 2008 +0000 +++ b/src/pixelarray.doc Fri Apr 04 08:04:49 2008 +0000 @@ -69,7 +69,7 @@ explicitly have to delete it once its not used anymore and the surface should perform operations in the same scope. -New in pygame 1.8. Subscript support is new in pygame 1.8.X. +New in pygame 1.8. Subscript support is new in pygame 1.8.1. <SECTION> surface @@ -90,5 +90,16 @@ # Create a new surface flipped around the vertical axis. sf = pxarray[:,::-1].make_surface () -New in pygame.1.8.X. +New in pygame.1.8.1. <END> + +replace +Replaces the passed color in the PixelArray with another one. +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. + +New in pygame.1.8.1. +<END> +<END>
