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

See CommandType.

Methods

__len

The number of points varies depending on the command type:
  • moveTo: 1 point
  • lineTo: 1 point
  • quadTo: 2 points
  • cubicTo: 3 points
  • close: 0 points
Returns the number of points stored on this command.