yes.
This commit is contained in:
parent
2fa15ade39
commit
0ecd95a72c
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -49,7 +49,7 @@ def get_track():
|
|||
return image
|
||||
|
||||
def showImage(image, offset_x = 0, offset_y = 0):
|
||||
#image = image.convert('RGB')
|
||||
image = image.convert('RGB')
|
||||
width, height = image.size
|
||||
for x in range(width):
|
||||
for y in range(height):
|
||||
|
@ -76,7 +76,7 @@ def showImage(image, offset_x = 0, offset_y = 0):
|
|||
|
||||
def drawCanvas():
|
||||
canvas = Image.new('RGB', (192, 128), color = 'red')
|
||||
canvas = canvas.paste(get_track(),(0,0))
|
||||
canvas.paste(get_track(),(0,0))
|
||||
showImage(canvas)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue