|
|
|
@ -83,6 +83,13 @@ for i in range(len(inverted_list)):
|
|
|
|
|
# смещение!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
move = [0, 0]
|
|
|
|
|
m0 = input("Enter move on X: ")
|
|
|
|
|
if m0 == "":
|
|
|
|
|
m0 = 0
|
|
|
|
|
m1 = input("Enter move on Y: ")
|
|
|
|
|
if m1 == "":
|
|
|
|
|
m1 = 0
|
|
|
|
|
move = [int(m0), int(m1)]
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -106,9 +113,14 @@ for x, y, color in result_list:
|
|
|
|
|
new_pixels[x, y] = rgb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# инвертируем изображение по оси X
|
|
|
|
|
#new_img = new_img.transpose(method=Image.FLIP_LEFT_RIGHT)
|
|
|
|
|
# поворачиваем изображение на 90 градусов влево
|
|
|
|
|
#new_img = new_img.transpose(method=Image.ROTATE_90)
|
|
|
|
|
|
|
|
|
|
new_img.show()
|
|
|
|
|
|
|
|
|
|
#new_img.show()
|
|
|
|
|
|
|
|
|
|
from bot import *
|
|
|
|
|
|
|
|
|
|
print("\nCheck image.")
|
|
|
|
|
print("Upload image?")
|
|
|
|
|
a = input("(Y/N) : ")
|
|
|
|
|
if a.lower() == 'y':
|
|
|
|
|
draw(res_list)
|
|
|
|
|