Export (0) Print
Expand All

moveTo method

Creates a new subpath by using the specified point.

HTML Canvas 2D Context, Section 9Internet Explorer 9

Syntax


object.moveTo(x, y);

Parameters

x [in]

Type: number

The x-coordinate, in pixels.

y [in]

Type: number

The y-coordinate, in pixels.

Return value

This method does not return a value.

Standards information

Remarks

This method is often used to set a point without drawing a line, such as a starting point for a shape.

See also

ICanvasRenderingContext2D::lineTo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft