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
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