taking out blue background color
This commit is contained in:
parent
e6b6d7dc6f
commit
2f8ed18b5c
|
@ -867,7 +867,6 @@ class ModuleWorld(object):
|
||||||
def rotate(self, img, pos, angle):
|
def rotate(self, img, pos, angle):
|
||||||
w, h = img.get_size()
|
w, h = img.get_size()
|
||||||
img2 = pygame.Surface((w*2, h*2), pygame.SRCALPHA)
|
img2 = pygame.Surface((w*2, h*2), pygame.SRCALPHA)
|
||||||
img2.fill(COLOR_BLUE)
|
|
||||||
img2.blit(img, (w-pos[0], h-pos[1]))
|
img2.blit(img, (w-pos[0], h-pos[1]))
|
||||||
return pygame.transform.rotate(img2, angle)
|
return pygame.transform.rotate(img2, angle)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue