polySides

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the polySides [of <graphic>] to <numberOfSides>
Associationsgraphic
Summary

Specifies how many sides a regular polygon has.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the polySides to 3 -- to make triangles
set the polySides of graphic "Hex" to 6 -- hexagon
Values
NameTypeDescription
Value

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

RelatedKeyword: graphic, polygon, integer
Property: style, slices
Command: global, choose
Object: graphic
Glossary: property, polygon, appearance, paint tool, regular polygon
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.

Tagsui