slices

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the slices to <number>
Summary

Specifies how many angles a line can snap to when drawing a line or irregular polygon with the Shift key held down.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the slices to 4 -- only 90-degree angles with shift key
set the slices to card field 2
Values
NameTypeDescription
Value

The slices is an integer greater than 1. By default, the slices property is 16.

RelatedKeyword: integer, polygon, line
Glossary: property, degree
Property: polySides, centered, grid
Description

Use the slices property to draw lines at specified angles.

The slices property is specified in degrees. 360 (the number of degrees in a full circle) divided by the slices yields the angle of each slice to the next slice. For example, if the slices is set to 16, the angle of a line drawn with the Shift key held down can be any multiple of 22.5 degrees (360 divided by 16).