diff options
Diffstat (limited to 'public/js/draw.js')
| -rw-r--r-- | public/js/draw.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/public/js/draw.js b/public/js/draw.js index 9116f78..b15416b 100644 --- a/public/js/draw.js +++ b/public/js/draw.js @@ -95,19 +95,3 @@ function Brush (b) { $("#drawing").append(canvas); } -function Point(e, offset) { - this.x = e.pageX - offset.left; - this.y = e.pageY - offset.top; -} -Point.prototype.add = function(p) { - this.x += p.x; - this.y += p.y; -} -Point.prototype.subtract = function(p) { - this.x -= p.x; - this.y -= p.y; -} -Point.prototype.quantize = function(x, y) { - this.x = Math.floor( this.x / x ) * x; - this.y = Math.floor( this.y / y ) * y; -} |
