December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.strokeRect() — draws a rectangle
void strokeRect(floatx, floaty, floatwidth, floatheight)
x, yThe coordinates of the upper-left corner of the rectangle
width, heightThe dimensions of the rectangle
This method draws the outline (but does not fill the interior) of
a rectangle with the specified position and size. Line color and line
width are specified by the strokeStyle and
lineWidth properties. The appearance of the rectangle
corners are specified by the lineJoin
property.
Unlike the rect() method,
strokeRect() has no effect on the current path or the
current point.
Read now
Unlock full access