Section 25.28. CanvasRenderingContext2D.lineTo( ): add a straight line to the current subpath


25.28. CanvasRenderingContext2D.lineTo( ): add a straight line to the current subpath

25.28.1. Synopsis

 void lineTo(float x, float y) 

25.28.1.1. Arguments

x, y

The coordinates of the end point of the line.

25.28.2. Description

lineTo( ) adds a straight line to the current subpath. The line begins at the current point and ends at (x,y). When this method returns, the current position is (x,y).

25.28.3. See Also

CanvasRenderingContext2D.beginPath( ), CanvasRenderingContext2D.moveTo( )




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