Draw an arc on a canvas
canvas_arc(
canvas,
x1,
y1,
x2,
y2,
start,
extent,
style,
fill,
outline,
width,
dash,
...
)
a tic_ui
'canvas' element.
he coordinates of two diagonally opposite corners of a rectangular region enclosing the oval that defines the arc
starting angle of arc in degrees measured counter-clockwise from the "3 o'clock" position. Value in range [-360, 360]
Size of te angle range occupied by the arc. Value in range [-360, 360]
how to draw the arc. One of: pieslice (default), chord, fill
pieslice
the arc's region is defined by a section of the oval's perimeter plus two line segments, one between the center of the oval and each end of the perimeter section
chord
the arc's region is defined by a section of the oval's perimeter plus a single line segment connecting the two end points of the perimeter section
arc
the arc's region consists of a section of the perimeter
alone. In thiscase the fill
option is ignored.
line colour
outline colour
line width e.g. width = 2
Specifies the line's dash pattern. This should be a numeric
vector with alternating lengths of "dash" and "space-between-dash".
E.g. dash = c(6, 4, 2, 4)
produces a dotted-dashed line
other line creation options. See https://www.tcl.tk/man/tcl8.6/TkCmd/canvas.html#M26
Other canvas:
canvas_clear()
,
canvas_image()
,
canvas_line()
,
canvas_oval()
,
canvas_plot()
,
canvas_polygon()
,
canvas_rect()
,
canvas_save()
,
canvas_text()
,
tic_canvas()