AddSymbol

Modified in version 5.0

AddSymbol ( xCenter ;​ yCenter ;​ type ;​ size ;​ stroke ;​ color ;​ colorVariant ;​ backgroundColor ;​ backgroundColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
xCenter num -inf..+inf (required)
yCenter num -inf..+inf (required)
type int 0..126 bullet
size num 0..1000 9 Dimension:[pt]
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
backgroundColor rgba 0..255 none
backgroundColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddSymbol(100;​150;​bullet;​10;​1;​darkGray)

AddSymbol(100;​150;​circle)

Description

The AddSymbol() function makes it possible to draw symbols whose size, stroke, color, background color and shadow can be varied. The arguments xCenter and yCenter define the center of the symbol. A total of 126 symbols are presently available. An overview of the predefined symbols can be found in Symbols.

ADD_SYMBOL_01
1

OpenDrawing(100;​100)

2

AddSymbol(50;​50;​circle;​70;​10;​darkYellow;​shaded;​110 110 110;​shaded)

3

CloseDrawing()

ADD_SYMBOL_01
ADD_SYMBOL_02
1

OpenDrawing(100;​100)

2

AddSymbol(50;​50;​star5;​80;​0;​teal;​shaded;​;​;​0 0 8;​green)

3

CloseDrawing()

ADD_SYMBOL_02
Scroll to Top