yes.
This commit is contained in:
parent
07a9f126e4
commit
491208e3c4
1 changed files with 8 additions and 2 deletions
10
main.py
10
main.py
|
@ -53,8 +53,14 @@ def get_track():
|
||||||
print('set image')
|
print('set image')
|
||||||
image = Image.new('RGB', (32, 32), color = 'red')
|
image = Image.new('RGB', (32, 32), color = 'red')
|
||||||
image = image.convert('RGB')
|
image = image.convert('RGB')
|
||||||
screen.SetImage(image, 10, 10)
|
#screen.SetImage(image, 10, 10)
|
||||||
screen.SetPixel(0,1,255,255,255)
|
#screen.SetPixel(0,1,255,255,255)
|
||||||
|
offset_x = 10
|
||||||
|
offset_y = 10
|
||||||
|
for x in range 32:
|
||||||
|
for y in range 32:
|
||||||
|
r, g, b = image.getpixel((x, y))
|
||||||
|
screen.setPixel(x+offset_x,y+offset_y,r,g,b)
|
||||||
print('image set')
|
print('image set')
|
||||||
|
|
||||||
#if token:
|
#if token:
|
||||||
|
|
Loading…
Reference in a new issue