This line drawer renders lines by performing the same calculations that your computer uses when drawing simple lines. It can draw a line between ANY two points on the screen! That means it can handle both positive and negative slopes!
For those interested in more technical details, I’ve used an algorithm called Bresenham’s line drawing algorithm. The version I used only requires addition and subtraction - no division means fast lines!