December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.rect() — adds a rectangle subpath to the path
void rect(floatx, floaty, floatwidth, floatheight)
x, yThe coordinates of the upper-left corner of the rectangle
width, heightThe dimensions of the rectangle
This method adds a rectangle to the path. This rectangle is in a
subpath of its own and is not connected to any other subpaths in the
path. When this method returns, the current position is
(x,y). A call to this method is equivalent to the
following sequence of calls:
c.moveTo(x,y); c.lineTo(x+w, y); c.lineTo(x+w, y+h); c.lineTo(x, y+h); c.closePath();
Read now
Unlock full access