src/app/script.js
/**
 * Draws a line between two points.
 * @param {Object} line Line object
 * @param {number} x1 Vertex source x
 * @param {number} y1 Vertex source y
 * @param {number} x2 Vertex target x
 * @param {number} y2 Vertex target y
 * @param {number} colour colour of line
 */
Draws a line between two points.
Draws a line between two points .
function drawLine(line, x1, y1, x2, y2, colour) {
  line.clear();
  line.lineStyle(5, colour, 1);
  line.moveTo(x1, y1);
  line.lineTo(x2, y2);
}
function drawLine ( line , x1 , y1 , x2 , y2 , colour ) { line . clear ( ) ; line . lineStyle ( 5 , colour , 1 ) ; line . moveTo ( x1 , y1 ) ; line . lineTo ( x2 , y2 ) ; }
Draws a line between two points.
Draws a line between two points .