object.path

Type Path
Object ShapeObject
Library display.*
Revision Release 2022.3683
Keywords stroke, width, border
See also Shapes — Paths, Fills, Strokes (guide)
Path

Overview

Paths are a property of shapes that let you control the geometry of the shape.

For the different types of paths, see Path.

Example

local rect = display.newRect( 135, 100, 50, 50 )
local path = rect.path
transition.to( path, { width=200 } )