Skip to main content

polySides

Type​

property

Summary​

Specifies how many sides a regular polygon has.

Syntax​

set the polySides [of <graphic>] to <numberOfSides>

Description​

Use the polySides property to change the appearance of polygons.

The polySides property affects only graphics whose style property is set to regular.

The global setting of the polySides property controls the appearance of polygons drawn with the paint tools. Once a paint polygon is drawn, its appearance can no longer be changed by changing the global polySides property.

Examples​

set the polySides to 3 -- to make triangles
set the polySides of graphic "Hex" to 6 -- hexagon

Value​

NameTypeDescription

value

The polySides of a graphic is an integer greater than 2. By default, the polySides of a newly created graphic is 4.

command: global, choose

glossary: property, polygon, appearance, paint tool, regular polygon

keyword: graphic, polygon, integer

object: graphic

property: style, slices

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?