- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path07.py
More file actions
Latest commit
28 lines (21 loc) · 493 Bytes
/
Copy path07.py
File metadata and controls
28 lines (21 loc) · 493 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
fromPILimportImage
im=Image.open("smarty/oxygen.png")
start_x=0
end_x=608
start_y=43
end_y=52
y=50
start_x=5
end_x=607
result=chr(115)
# print("0,50 - (115, 115, 115, 255)")
forxinrange(start_x, end_x, 7):
# print("{},{} - {}".format(x, y, im.getpixel((x, y))))
c=im.getpixel((x, y))[0]
result+=chr(c)
result2=""
ary= [105, 110, 116, 101, 103, 114, 105, 116, 121]
foriinrange(len(ary)):
result2+=chr(ary[i])
print(result)
print(result2)