object.anchorSegments

Type Boolean
Object LineObject
Library display.*
Revision Current Public Release (2017.3135)
Keywords line, segments, anchor
See also display.newLine()

Overview

This boolean property controls whether LineObjects take anchorX and anchorY into account. This value is false by default.

Example

local star = display.newLine( 200,90, 227,165, 305,165, 243,216, 265,290, 200,245, 135,290, 157,215, 95,165, 173,165, 200,90 )

star.x = display.contentWidth * 0.5
star.y = display.contentHeight * 0.5

star.anchorSegments = true
star.anchorX = 0.75
star.anchorY = 0.25