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