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 |
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 |