def METHOD_NAME(self, x, y):
    """Get pixel at the speficied position."""
    assert x >= 0 and x < self.width
    assert y >= 0 and y < self.height
    i = 3 * (y * self.width + x)
    return (
        self.data[i],
        self.data[i + 1],
        self.data[i + 2]
    )