import ctypes
def pixel(x, y):
hdc = ctypes.windll.user32.GetDC(0)
color = ctypes.windll.gdi32.GetPixel(hdc, x, y)
# color is in the format 0xbbggrr https://msdn.microsoft.com/en-us/library/windows/desktop/dd183449(v=vs.85).aspx
r = color % 256
g = (color // 256) % 256
b = color // (256 ** 2)
ctypes.windll.user32.ReleaseDC(0, hdc)
return (r, g, b)
input()
i = 1
while True:
change = [pixel(200, 200)]
print(i, change)
i += 1