lineSize

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lineSize [of <graphic>] to <widthInPixels>
Synonymspenheight,penwidth
Associationsgraphic
Summary

Specifies the thickness of lines and the borders of shapes drawn with the paint tools, or the thickness of lines and borders of graphic objects.

Introduced1.0
OSmac, windows, linux, ios, android, web
Platformsdesktop, server, mobile
Example
set the lineSize to 3 -- 3-pixels lines will be used in paint tools
set the lineSize of graphic "Rectangular Border" to 9
Values
NameTypeDescription
Value

The lineSize of a graphic is an integer between zero and 32767. By default, the lineSize of newly created graphics is set to 1.

RelatedKeyword: integer, polygon, graphic
Property: brushColor, multiple, arrowSize, roundEnds, markerLineSize
Command: global, choose
Function: platform
Glossary: property, paint tool, appearance, Unix, stack window
Object: graphic
Description

Use the lineSize property to set the thickness of the line used for line, curve, and polygon shapes, and the outline used with the oval, rectangle, and roundRect shapes.

If the lineSize property is set to zero, the lines in the graphic disappear.

The global setting of the lineSize property controls the appearance of shapes drawn with the paint tools. Once a paint shape is drawn, its appearance cannot be changed by changing the global lineSize property.

Warning: Setting the lineSize of a graphic to a value greater than the height or width of the stack window may cause problems on Unix systems, and looks strange on any platform.

Tagsui