Function CanvasItem.drawLine

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

void drawLine (
  const(Vector2) from,
  const(Vector2) to,
  const(Color) color,
  const(double) width = 1.00000,
  const(bool) antialiased = false
) nothrow @nogc;