def drawline(color, endpt1, endpt2, dashEnabled=False, stipleFactor=1, width=1, isSmooth=False): """ Draw a line from endpt1 to endpt2 in the given color. Actually, schedule it for rendering whenever ColorSorter thinks is appropriate. @param endpt1: First endpoint. @type endpt1: point @param endpt2: Second endpoint. @type endpt2: point @param dashEnabled: If dashEnabled is True, it will be dashed. @type dashEnabled: boolean @param stipleFactor: The stiple factor. @param stipleFactor: int @param width: The line width in pixels. The default is 1. @type width: int or float @param isSmooth: Enables GL_LINE_SMOOTH. The default is False. @type isSmooth: boolean @note: Whether the line is antialiased is determined by GL state variables which are not set in this function. @warning: Some callers pass dashEnabled as a positional argument rather than a named argument. """ ColorSorter.schedule_line(color, endpt1, endpt2, dashEnabled, stipleFactor, width, isSmooth)
def drawline(color, endpt1, endpt2, dashEnabled = False, stipleFactor = 1, width = 1, isSmooth = False): """ Draw a line from endpt1 to endpt2 in the given color. Actually, schedule it for rendering whenever ColorSorter thinks is appropriate. @param endpt1: First endpoint. @type endpt1: point @param endpt2: Second endpoint. @type endpt2: point @param dashEnabled: If dashEnabled is True, it will be dashed. @type dashEnabled: boolean @param stipleFactor: The stiple factor. @param stipleFactor: int @param width: The line width in pixels. The default is 1. @type width: int or float @param isSmooth: Enables GL_LINE_SMOOTH. The default is False. @type isSmooth: boolean @note: Whether the line is antialiased is determined by GL state variables which are not set in this function. @warning: Some callers pass dashEnabled as a positional argument rather than a named argument. """ ColorSorter.schedule_line(color, endpt1, endpt2, dashEnabled, stipleFactor, width, isSmooth)