AddLine

AddLine ( xStart ;​ yStart ;​ xEnd ;​ yEnd ;​ lineStroke ;​ lineColor ;​ lineColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
xStart num -inf..+inf (required)
yStart num -inf..+inf (required)
xEnd num -inf..+inf (required)
yEnd num -inf..+inf (required)
lineStroke num[] 0..1000 1 Dimension:[pt]
lineColor rgba 0..255 black
lineColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddLine(50;​150;​250;​0)

AddLine(100;​150;​100;​0;​1;​darkGray)

Description

Lines can be added by using the AddLine() function whose stroke (thickness, dash pattern), color and shadow can be varied. The coordinate origin is located in the upper left-hand corner of the drawing or view.

ADD_LINE_01
1

OpenDrawing(140;​140)

2

AddLine(20;​20;​120;​20;​0.5;​steelBlue)

3

AddLine(20;​45;​120;​45;​1;​steelBlue)

4

AddLine(20;​70;​120;​70;​2;​steelBlue)

5

AddLine(20;​95;​120;​95;​3.5 3 3;​steelBlue)

6

AddLine(20;​120;​120;​120;​10 2 2;​steelBlue)

7

CloseDrawing()

ADD_LINE_01
ADD_LINE_02
1

OpenDrawing(115;​140)

2

AddLine(20;​20;​20;​120;​1 12 3 1 3;​steelBlue;​)

3

AddLine(45;​20;​45;​120;​1 12 3 1 3 1 3;​steelBlue)

4

AddLine(70;​20;​70;​120;​3.5;​steelBlue;​;​0 0 2;​lime)

5

AddLine(95;​20;​95;​120;​10;​steelBlue;​;​0 0 5)

6

CloseDrawing()

ADD_LINE_02
Scroll to Top