Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawLine() {
- var a = prevX,
- b = prevY,
- c = currX,
- d = currY;
- context.fillStyle = getColor();
- context.strokeStyle = color;
- context.lineWidth = lineWidth;
- context.lineCap = "round";
- context.beginPath();
- context.moveTo(a, b);
- context.lineTo(c, d);
- context.stroke();
- context.closePath();
- }
Add Comment
Please, Sign In to add comment