AddArrow

Modified in version 4.0

AddArrow ( xStart ;​ yStart ;​ xEnd ;​ yEnd ;​ lineStroke ;​ lineColor ;​ lineColorVariant ;​ headLocation ;​ headLength ;​ headWidth ;​ headIndent ;​ hasHollowHead ;​ 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
headLocation int 0..3 end
headLength num 0..1000 16 Dimension:[pt]
headWidth num 0..1000 8 Dimension:[pt]
headIndent num -1000..1000 0 Dimension:[pt]
hasHollowHead int 0..1 off
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddArrow(50;​50;​200;​200;​2;​blue;​;​;​30;​15;​10)

AddArrow(100;​150;​100;​0;​1;​darkGray;​;​begin+end)

Description

The AddArrow() function makes it possible to draw arrows whose stroke (thickness, dash pattern), color, shadow and heads can be varied. Moreover, by using the argument headLocation, the arrowhead can be positioned on the end (default), at the beginning or on both of them.

ADD_ARROW_01
1

OpenDrawing(140;​140)

2

AddArrow(20;​ 20;​120;​ 20;​1;​steelBlue;​;​end;​0;​0)

3

AddArrow(20;​ 45;​120;​ 45;​1;​steelBlue;​;​end;​0;​10)

4

AddArrow(20;​ 70;​120;​ 70;​1;​steelBlue;​;​end;​10;​10;​10)

5

AddArrow(20;​ 95;​120;​ 95;​1;​steelBlue;​;​end;​12;​7)

6

AddArrow(20;​120;​120;​120;​1;​steelBlue;​;​end;​14;​8;​3)

7

CloseDrawing()

ADD_ARROW_01
ADD_ARROW_02
1

OpenDrawing(115;​140)

2

AddArrow(20;​20;​20;​120;​1;​steelBlue;​;​begin+end;​0;​10)

3

AddArrow(45;​20;​45;​120;​1;​steelBlue;​;​begin+end;​10;​10;​10)

4

AddArrow(70;​20;​70;​120;​1;​steelBlue;​;​begin+end;​12;​7)

5

AddArrow(95;​20;​95;​120;​1;​steelBlue;​;​begin+end;​14;​8;​3)

6

CloseDrawing()

ADD_ARROW_02
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×