A rectangle specified by [x,y,w,h] has an infinitely thin outline path with corners at [x,y], [x+w,y], [x+w,y+h], and [x,y+h] When a rectangle is filled, the lower-right edges are not drawn For example, if w=h=0, nothing would be drawn For w=h=1, a single pixel would be drawn
A rectangle is a four-sided shape whose corners are all ninety degree angles. Each side of a rectangle is the same length as the one opposite to it. a shape that has four straight sides, two of which are usually longer than the other two, and four 90° angles at the corners square (rectangulus , from rectus + angulus )