Skip to content

Commit

Permalink
tab to 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Dec 18, 2011
1 parent 2e418d6 commit 9506884
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drawline.js
@@ -1,23 +1,23 @@
var DrawLine = function() {

var context, offsetLeft, offsetTop;
var context, offsetLeft, offsetTop;

function _drawCircle(mouseX, mouseY) {
function _drawCircle(mouseX, mouseY) {
var x = mouseX - offsetLeft,
y = mouseY - offsetTop;
context.beginPath();
context.arc(x, y, 15, 0, Math.PI * 2);
context.closePath();
context.fill();
}

function _setLineStyle() {
context.strokeStyle = "#df4b26";
context.lineJoin = "round";
context.lineWidth = 20;
}

return {
context.beginPath();
context.arc(x, y, 15, 0, Math.PI * 2);
context.closePath();
context.fill();
}

function _setLineStyle() {
context.strokeStyle = "#df4b26";
context.lineJoin = "round";
context.lineWidth = 20;
}

return {
init: function(canvas) {
var isPainting = false;

Expand Down

0 comments on commit 9506884

Please sign in to comment.