Creating vertical lines

Did you read the reference about line() ?

It’s a line from a point at x,y to another point at x2,y2

So the order for the parameters is x,y, x2, y2

It’s confusing because all look the same

It’s a matter of practice and experience