Compartir a través de


moveTo method

Creates a new subpath by using the specified point.

 

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