JavaScript: The Definitive Guide
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
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( ) |
Категории