(self, pos)
| 45 | self._grid = [[tuple(data[stride * y + 3 * x:stride * y + 3 * (x + 1)]) for x in range(width)] for y in range(height)] |
| 46 | |
| 47 | def getpixel(self, pos): |
| 48 | return self._grid[pos[1]][pos[0]] |
| 49 | |
| 50 | def print_image(img, threshold=128): |
| 51 | '''Print black-and-white image to terminal in braille unicode characters.''' |