polygon

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
polygon
Synonymspoly
Summary

Designates the paint tool used to draw irregular polygon shapes. It also specifies, through the style property, that a graphic is an irregular polygon shape.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
choose polygon tool
set the style of the templateGraphic to polygon
RelatedKeyword: polygon, graphic
Property: style, brushColor, points, properties, penColor, brushPattern
Command: choose
Object: graphic
Glossary: property, keyword, paint tool, polygon
Description

Use the polygon keyword to paint an irregular polygon with the penColor or to change a graphic to an irregular polygon shape.

When using the Polygon tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw an irregular polygon in the penColor, filled with the brushColor (or brushPattern).

If you try to paint with the Polygon tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.

Setting the style of a graphic to "polygon" makes the graphic into an irregular polygon. Irregular polygon graphics, unlike painted polygons, can be changed and reshaped: use the points properties to change the shape.

Tagsui