This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

strokeLine

.strokeLine(x1, y1, x2, y2);
.strokeLine(a, b);

Example

  var layer = cq(300, 300).clear("#048").appendTo(document.body);

  layer
    .strokeStyle("#0af")
    .lineWidth(4)
    .strokeLine(50, 50, 150, 150);

Example

  var layer = cq(300, 300).clear("#048").appendTo(document.body);

  var a = { x: 50, y: 50 };
  var b = { x: 150, y: 150 };

  layer
    .strokeStyle("#0af")
    .lineWidth(4)
    .strokeLine(a, b);


Have any questions? Don't hesitate to ask:

Post issues on github, support my work on gratipay author rezoner