JavaScript: The Definitive Guide

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( )

Категории