How do I make Straight & Curved Lines properly?

well, if you shift bottom end up by one pixel and left end to left by one pixel, you’ll get a line with fixed ratio of 2:1.