(self, coord_x, coord_y)
Returns the pixel value at a given position.

        :param int coord_x: The x coordinate.
        :param int coord_y: The y coordinate.
        :return tuple: The pixel value as (R, G, B).
Returns the pixel value at a given position.
Returns the pixel value at a given position .
def pixel(self, coord_x, coord_y):
        # type: (int, int) -> Pixel
        """
        Returns the pixel value at a given position.

        :param int coord_x: The x coordinate.
        :param int coord_y: The y coordinate.
        :return tuple: The pixel value as (R, G, B).
        """

        try:
            return self.pixels[coord_y][coord_x]  # type: ignore
        except IndexError:
            # pylint: disable=raise-missing-from
            raise ScreenShotError(
                "Pixel location ({}, {}) is out of range.".format(coord_x, coord_y)
            )
def pixel ( self , coord_x , coord_y ) : # type: (int, int) -> Pixel try : return self . pixels [ coord_y ] [ coord_x ] # type: ignore except IndexError : # pylint: disable=raise-missing-from raise ScreenShotError ( "Pixel location ({}, {}) is out of range." . format ( coord_x , coord_y ) )