Skip to main content
A PathCommand represents a single drawing instruction inside a Path. Each command has a type, and a variable number of points depending on that type.

Fields

type

A PathCommand represents a single drawing instruction inside a Path. Each command has a type, and a variable number of points depending on that type. See CommandType.

Methods

__len

points size varies depending on command. moveTo and lineTo have only two points cubicTo has 6 and close has none Returns the number of points stored on this command. This is equivalent to the size listed in the table above.