Draw line width

Explanation
This function draws a line from (x1,y1) to (x2,y2) with a width of 'w'. To draw a horizontal line, both y1 and y2 should be the same number, To draw a vertical line, both x1 and x2 should be the same number.