PyGame: Umwandlung Farben (mapped Color in RGB(A)-Tupel)
Verfasst: Dienstag 10. November 2009, 12:55
Der Code gemäß http://paste.pocoo.org/show/149622/
unterbricht hier:
_Farbe = pygame.Surface.unmap_rgb(_FarbeInt)
mit folgender Fehlermeldung:
print pygame.surface.unmap_rgb(_FarbeInt)
AttributeError: 'module' object has no attribute 'unmap_rgb'
Lt. http://www.pygame.org/docs/ref/surface. ... .unmap_rgb wandelt Surface.unmap_rgb von einer mapped integer in eine Color-Tupel (0..255, 0..255, 0..255, 0..255) um.
print _FarbeInt ergab z.B.
4488835
ist also vom Typ Int,
Was übersehe ich?
unterbricht hier:
_Farbe = pygame.Surface.unmap_rgb(_FarbeInt)
mit folgender Fehlermeldung:
print pygame.surface.unmap_rgb(_FarbeInt)
AttributeError: 'module' object has no attribute 'unmap_rgb'
Lt. http://www.pygame.org/docs/ref/surface. ... .unmap_rgb wandelt Surface.unmap_rgb von einer mapped integer in eine Color-Tupel (0..255, 0..255, 0..255, 0..255) um.
print _FarbeInt ergab z.B.
4488835
ist also vom Typ Int,
Was übersehe ich?