BLUE: BROWN:

Note: click on a point to set it as the new pivot for the line.