summaryrefslogtreecommitdiff
path: root/public/js/draw.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2013-03-06 11:26:58 -0500
committerJules Laplace <jules@okfoc.us>2013-03-06 11:26:58 -0500
commita390354e9a02816f9598eacbf2bb49c28176211f (patch)
tree7d0ff5be65d55875c03505a18cb6a8923101e2e9 /public/js/draw.js
parent9128ec77b581608635174f1ff46e3bfaea8c19d2 (diff)
move point stuff into point.js
Diffstat (limited to 'public/js/draw.js')
-rw-r--r--public/js/draw.js16
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;
-}