Section 25.31. CanvasRenderingContext2D.quadraticCurveTo( ): add a quadratic Bezier curve to the current subpath


25.31. CanvasRenderingContext2D.quadraticCurveTo( ): add a quadratic Bezier curve to the current subpath

25.31.1. Synopsis

 void quadraticCurveTo(float cpX, float cpY,                       float x, float y) 

25.31.1.1. Arguments

cpX, cpY

The coordinates of the control point.


x, y

The coordinates of the end point of the curve.

25.31.2. Description

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 Bezier curves is beyond the scope of this book, however.) When this method returns, the current position is (x,y).

25.31.3. Bugs

Firefox 1.5 implements this method incorrectly.

25.31.4. See Also

CanvasRenderingContext2D.bezierCurveTo( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net