tinyfix
This commit is contained in:
parent
5d4c250f89
commit
e2c5aee5cc
1 changed files with 1 additions and 1 deletions
2
vloed.py
2
vloed.py
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue