Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_pixel(self, x, y):
- w, h= self.size()
- if (0<=y<=h and 0<=x<=w):
- for j in range(len(self.matrice)):
- for i in range(len(self.matrice[0])):
- return self.matrice[y][x]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement