AddArrowExt

New in version 5.0

AddArrowExt ( pathData ;​ stroke ;​ color ;​ colorVariant ;​ headType ;​ headSize ;​ headGap ;​ tailType ;​ tailSize ;​ tailGap ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
pathData num[] -inf..+inf (required)
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
headType int -8..126 arrowheadFilledIndent
headSize num 0..1000 10 Dimension:[pt]
headGap num -1000..1000 0 Dimension:[pt]
tailType int -8..126 none
tailSize num 0..1000 10 Dimension:[pt]
tailGap num -1000..1000 0 Dimension:[pt]
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Description

In addition to function AddArrow() , a new extended function AddArrowExt() has been added to xmCHART 5. Using the 1st argument pathData, the path of the arrow can be defined. See function AddPath() .

ADD_ARROW_EXT_01
1

OpenDrawing(120;​120)

2

AddArrowExt(M 60 100 A 100 60 40 40 0 1 1;​

3

2;​ /* Stroke.  */

4

steelBlue;​ /* Color.  */

5

solid;​ /* Color variant. */

6

arrowHeadFilledIndent;​ /* Head type.  */

7

20;​ /* Head size.  */

8

0;​ /* Head gap.  */

9

circle;​ /* Tail type.  */

10

8;​ /* Tail size.  */

11

0;​ /* Tail gap.  */

12

2 2 2;​ /* Shadow effect. */

13

lightGray) /* Shadow color.  */

14

CloseDrawing()

ADD_ARROW_EXT_01
ADD_ARROW_EXT_02
1

OpenDrawing(200;​100)

2

AddArrowExt(M 10 80 L 40 80 C 100 80 100 20 160 20 L 190 20;​

3

2;​ /* Stroke.  */

4

steelBlue;​ /* Color.  */

5

solid;​ /* Color variant. */

6

arrowHeadOutline;​ /* Head type.  */

7

20;​ /* Head size.  */

8

0;​ /* Head gap.  */

9

arrowHeadBar;​ /* Tail type.  */

10

16;​ /* Tail size.  */

11

0;​ /* Tail gap.  */

12

2 2 2;​ /* Shadow effect. */

13

lightGray) /* Shadow color.  */

14

CloseDrawing()

ADD_ARROW_EXT_02
ADD_ARROW_EXT_03
1

OpenDrawing(200;​100)

2

AddArrowExt(M 10 80 L 40 80 C 100 80 100 20 160 20 L 190 20;​

3

2 2 2;​ /* Stroke.  */

4

steelBlue;​ /* Color.  */

5

solid;​ /* Color variant. */

6

arrowHeadOutline;​ /* Head type.  */

7

20;​ /* Head size.  */

8

0;​ /* Head gap.  */

9

arrowHeadOutline;​ /* Tail type.  */

10

20;​ /* Tail size.  */

11

0;​ /* Tail gap.  */

12

2 2 2;​ /* Shadow effect. */

13

lightGray) /* Shadow color.  */

14

CloseDrawing()

ADD_ARROW_EXT_03
ADD_ARROW_EXT_04
1

OpenDrawing(200;​100)

2

AddArrowExt(M 20 80 L 20 40 A 40 20 20 20 0 0 1 L 180 20;​

3

1.5;​ /* Stroke.  */

4

steelBlue;​ /* Color.  */

5

solid;​ /* Color variant. */

6

arrowHeadFilledIndent;​ /* Head type.  */

7

25;​ /* Head size.  */

8

0;​ /* Head gap.  */

9

bullet;​ /* Tail type.  */

10

10;​ /* Tail size.  */

11

0;​ /* Tail gap.  */

12

2 2 2;​ /* Shadow effect. */

13

lightGray) /* Shadow color.  */

14

CloseDrawing()

ADD_ARROW_EXT_04
Scroll to Top