1WITHOUT ALPHA VALUE
2
3color = (0,0,0)
4while True:
5 color = pygame.Surface.get_at((x,y))[:3]
6 if color = (#certain value)
7 #do something
8
9WITH ALPHA VALUE
10color = (0,0,0,0)
11while True:
12 color = pygame.surface.get_at((x,y))
13 if color = (#certain value)
14 #do somthing