g.js — graphical objects for JavaScript

lineline

Create a line between two points.

g.line({x: -75, y: -25}, {x: 75, y: 25})

Parameters

  • point1: The starting point of the line.
  • point2: The ending point of the line.

See Also

  • lineAngle: Create a line between a point and angle + distance.