Draw rectangle

Explanation
Draws a rectangle that spans between (x1,y1) for its first corner and (x2,y2) for its final corner. Outline is whether or not the shape will be drawn as an outline, if it is true, the shape will be drawn as an outline, if false, it will be drawn as a full solid object.