(self, args)
POINT (1 argument): Return current coordinate
        (2 arguments): Return the attribute of a pixel.
POINT (1 argument): Return current coordinate
        (2 arguments): Return the attribute of a pixel.
POINT ( 1 argument ) : Return current coordinate ( 2 arguments ) : Return the attribute of a pixel .
def point_(self, args):
        """
        POINT (1 argument): Return current coordinate
        (2 arguments): Return the attribute of a pixel.
        """
        arg0 = next(args)
        arg1 = next(args)
        if arg1 is None:
            arg0 = values.to_integer(arg0)
            fn = values.to_int(arg0)
            error.range_check(0, 3, fn)
            list(args)
            if self._mode.is_text_mode:
                return self._values.new_single()
            if fn in (0, 1):
                point = self._last_point[fn]
            elif fn in (2, 3):
                point = self._get_window_logical(*self._last_point)[fn - 2]
            return self._values.new_single().from_value(point)
        else:
            if self._mode.is_text_mode:
                raise error.BASICError(error.IFC)
            arg1 = values.pass_number(arg1)
            list(args)
            x, y = values.to_single(arg0).to_value(), values.to_single(arg1).to_value()
            x, y = self._get_window_physical(x, y)
            if x < 0 or x >= self._mode.pixel_width or y < 0 or y >= self._mode.pixel_height:
                point = -1
            else:
                point = self.graph_view[y, x]
            return self._values.new_integer().from_int(point)
def point_ ( self , args ) : arg0 = next ( args ) arg1 = next ( args ) if arg1 is None : arg0 = values . to_integer ( arg0 ) fn = values . to_int ( arg0 ) error . range_check ( 0 , 3 , fn ) list ( args ) if self . _mode . is_text_mode : return self . _values . new_single ( ) if fn in ( 0 , 1 ) : point = self . _last_point [ fn ] elif fn in ( 2 , 3 ) : point = self . _get_window_logical ( * self . _last_point ) [ fn - 2 ] return self . _values . new_single ( ) . from_value ( point ) else : if self . _mode . is_text_mode : raise error . BASICError ( error . IFC ) arg1 = values . pass_number ( arg1 ) list ( args ) x , y = values . to_single ( arg0 ) . to_value ( ) , values . to_single ( arg1 ) . to_value ( ) x , y = self . _get_window_physical ( x , y ) if x < 0 or x >= self . _mode . pixel_width or y < 0 or y >= self . _mode . pixel_height : point = - 1 else : point = self . graph_view [ y , x ] return self . _values . new_integer ( ) . from_int ( point )