From 313423fe99372a9800c31fc553bc2fc6e8e9a858 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Nov 2014 18:32:55 -0500 Subject: initial brush test.. some bugs --- assets/test/brush/index.html | 100 +++++++++++++++++++++++++++++++++++++++++++ assets/test/lasso/index.html | 2 +- 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 assets/test/brush/index.html diff --git a/assets/test/brush/index.html b/assets/test/brush/index.html new file mode 100644 index 0000000..3e29473 --- /dev/null +++ b/assets/test/brush/index.html @@ -0,0 +1,100 @@ + + + +
+ + + + + + + + + + + diff --git a/assets/test/lasso/index.html b/assets/test/lasso/index.html index 16cb27f..f136f6d 100644 --- a/assets/test/lasso/index.html +++ b/assets/test/lasso/index.html @@ -28,7 +28,7 @@ var mymouse = new mouse({ down: function(e, cursor){ // compare to initial point if (placing) { - if (points.length > 3 && points[0].distanceTo({ a: cursor.x.a, b: cursor.y.a }) < 3) { + if (points.length > 2 && points[0].distanceTo({ a: cursor.x.a, b: cursor.y.a }) < 3) { points.push(points[0].clone()) placing = false } -- cgit v1.2.3-70-g09d2