Contents

beginPath()

Creates a new empty path in a graphics context.

Declaration

func beginPath()

Discussion

A graphics context can have only a single path in use at any time. If the specified context already contains a current path when you call this function, the old path and any data associated with it is discarded.

The current path is not part of the graphics state. Consequently, saving and restoring the graphics state has no effect on the current path.

See Also

Constructing a Current Graphics Path