inverted surface

This commit is contained in:
Frank DeMarco 2016-03-11 23:38:46 -05:00
parent e36a232a3e
commit 838184cb3f
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ def get_hue_shifted_surface(base, offset):
del pixels
return surface
def get_inverted_surface(base):
return get_hue_shifted_surface(base, 180)
def fill_tile(surface, tile):
for x in xrange(0, surface.get_width(), tile.get_width()):
for y in xrange(0, surface.get_height(), tile.get_height()):