@classmethod
def draw_line(cls, x0, y0, x1, y1):
    """
        Draw single line

        :param x0: Start x location
        :param y0: Start y location
        :param x1: End x location
        :param y1: End y location
        """
    dx = x1 - x0
    dy = y1 - y0
    D = 2 * dy - dx
    cls.draw_pixel(x0, y0)
    y = y0
    for x in range(x0 + 1, x1 + 1):
        if D > 0:
            y += 1
            cls.draw_pixel(x, y)
            D += 2 * dy - 2 * dx
        else:
            cls.draw_pixel(x, y)
            D += 2 * dy
