Section 25.30. CanvasRenderingContext2D.moveTo( ): sets the current position and begins a new subpath


25.30. CanvasRenderingContext2D.moveTo( ): sets the current position and begins a new subpath

25.30.1. Synopsis

 void moveTo(float x, float y) 

25.30.1.1. Arguments

x, y

The coordinates of the new current point.

25.30.2. Description

moveTo( ) sets the current position to (x,y) and creates a new subpath with this as its first point. If there was a previous subpath and it consisted of just one point, that subpath is removed from the path.

25.30.3. See Also

CanvasRenderingContext2D.beginPath( )




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