December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.quadraticCurveTo() — adds a quadratic Bézier curve to the path
void quadraticCurveTo(floatcpX, floatcpY, floatx, floaty)
cpX, cpYThe coordinates of the control point
x, yThe coordinates of the endpoint of the curve
This method adds a quadratic Bézier curve segment to the current
subpath. The curve starts at the current point and ends at
(x,y). The control point (cpX,
cpY) specifies the shape of the curve between these two
points. (The mathematics of Bézier curves is beyond the scope of this
book, however.) When this method returns, the current position is
(x,y).
Read now
Unlock full access