Guest User

Untitled

a guest
Nov 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function drawLine() {
  2. var a = prevX,
  3. b = prevY,
  4. c = currX,
  5. d = currY;
  6.  
  7. context.fillStyle = getColor();
  8. context.strokeStyle = color;
  9. context.lineWidth = lineWidth;
  10. context.lineCap = "round";
  11.  
  12. context.beginPath();
  13. context.moveTo(a, b);
  14. context.lineTo(c, d);
  15. context.stroke();
  16. context.closePath();
  17. }
Add Comment
Please, Sign In to add comment