Skip to main content
Describes the type of drawing command stored in a PathCommand. For more information on the following command types, see Path.
  • none – Placeholder command with no effect. You should not normally see this.
  • moveTo
  • lineTo
  • cubicTo
  • quadTo
  • close
local path = Path.new()
path:moveTo(Vector.xy(0, 0))
path:lineTo(Vector.xy(10, 0))

for i, command in ipairs(path) do
  print(i, command.type)
end
-- 1 moveTo
-- 2 lineTo