svgaddarrow
svgaddarrow |
Purpose
Synopsis
procedure svgaddarrow(gid: string, x1: real, y1: real, x2: real, y2: real)
procedure svgaddarrow(x1: real, y1: real, x2: real, y2: real)
Arguments
gid
|
Object group ID.
|
x1
|
The x coordinate of the first point.
|
y1
|
The y coordinate of the first point.
|
x2
|
The x coordinate of the second point.
|
y2
|
The y coordinate of the second point.
|
Example
The following adds two arrows to a group named `thetime'. The arrows suggest three o'clock:
svgaddgroup("arrows", "thetime", SVG_BLACK) svgaddarrow("arrows", 0, 0, 0, 5) svgaddarrow(0, 0, 4.5, 0) svgsetgraphviewbox(-5, -6, 10, 12)
Further information
1. The arrow connects the two points whose coordinates are given as parameters, pointing to the second one.
2. If no group ID is specified, the arrow is added to the last group that has been created.