while x != x1:
            if remainder >= 0:
                y += step_y
                remainder -= diff_x * 2
            x += step_x