object.path

Type Path
Object ShapeObject
Library display.*
Revision Release 2024.3703
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 } )