CanvasItem.drawLine

Draws a line from a 2D point to another, with a given color and width. It can be optionally antialiased.

struct CanvasItem
@nogc nothrow
void
drawLine
(
in Vector2 from
,
in Vector2 to
,
in Color color
,
in double width = 1
,
in bool antialiased = false
)

Meta