December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.bezierCurveTo() — adds a cubic Bézier curve to the current subpath
void bezierCurveTo(floatcpX1, floatcpY1, floatcpX2, floatcpY2, floatx, floaty)
cpX1, cpY1The coordinates of the control point associated with the curve’s start point (the current position)
cpX2, cpY2The coordinates of the control point associated with the curve’s endpoint
x, yThe coordinates of the curve’s endpoint
bezierCurveTo() adds a cubic Bézier curve to
the current subpath of a canvas. The start point of the curve is the
current point of the canvas, and the endpoint is
(x,y). The two Bézier control points (cpX1,
cpY1) and (cpX2, cpY2) define the shape of
the curve. When this method returns, the current position is
(x,y).
Read now
Unlock full access