This commit is contained in:
Jan Klopper 2016-04-28 22:39:43 +02:00
parent 5d4c250f89
commit e2c5aee5cc

View file

@ -71,7 +71,7 @@ class Canvas(object):
def Pixel(self, x, y, r, g, b, a=255): # pylint: disable=C0103 def Pixel(self, x, y, r, g, b, a=255): # pylint: disable=C0103
"""Print a pixel to the screen""" """Print a pixel to the screen"""
try: try:
if a != 255: if a == 255:
self.pixels[x][y] = (r*256*256) + (g*256) + b self.pixels[x][y] = (r*256*256) + (g*256) + b
else: else:
old = self.pixels[x][y] old = self.pixels[x][y]