Skip to main content

lineSize

Type​

property

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.

Syntax​

set the lineSize [of <graphic>] to <widthInPixels>

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.

Examples​

set the lineSize to 3 -- 3-pixels lines will be used in paint tools
set the lineSize of graphic "Rectangular Border" to 9

Value​

NameTypeDescription

value

number

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

command: global, choose

function: platform

glossary: property, paint tool, appearance, Unix, stack window

keyword: integer, polygon, graphic

object: graphic

property: brushColor, multiple, arrowSize, roundEnds, markerLineSize

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?