add_arrow
add_arrow -colors_color-p1 {x1 y1} -p2 {x2 y2} [ -end1 arrow ] [ -end2 arrow ] [ -lineWidthwidth]
Description
The add_arrow command adds an arrow annotation to the active window.
Arguments
|
Specifies the color for the arrow as the color name (such as |
|
|
Specifies whether the first endpoint has an arrowhead. If this argument is omitted, no arrowhead is added. |
|
|
Specifies whether the second endpoint has an arrowhead. If this argument is omitted, no arrowhead is added. |
|
|
Specifies the width in pixels of the line and arrowheads (if specified). |
|
|
Specifies the x- and y-coordinates for the first endpoint, as two space-delimited real numbers, enclosed in braces. |
|
|
Specifies the x- and y-coordinates for the second endpoint, as two space-delimited real numbers, enclosed in braces. |
Examples
The following example adds an arrow annotation, colored red, with an arrowhead at the second endpoint.
add_arrow -color red -lineWidth 2 -p1 {132.1 170} -p2 {134.5 171.2} -end2 arrow
Related Topics
Return to top