Draw a polygon on a canvas
canvas_rect(canvas, x1, y1, x2, y2, fill, outline, width, dash, ...)
a tic_ui
'canvas' element.
corners of rectangle
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_arc()
,
canvas_clear()
,
canvas_image()
,
canvas_line()
,
canvas_oval()
,
canvas_plot()
,
canvas_polygon()
,
canvas_save()
,
canvas_text()
,
tic_canvas()