aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-05-11 12:08:07 +0200
committerJakob Odersky <jodersky@gmail.com>2014-05-11 12:08:07 +0200
commitb2a24da1c16e7c8f2cf16f501e6adf85f52dfcad (patch)
treec9ea1edf8472f436aefbf63f3ef9349a383872fd
parent1509f45816f298112e0ca7e3c81c64a48bd4d01b (diff)
parent23f13a83847aad142aa9a1241e585c2778d0a05a (diff)
downloadplayGraph-b2a24da1c16e7c8f2cf16f501e6adf85f52dfcad.tar.gz
playGraph-b2a24da1c16e7c8f2cf16f501e6adf85f52dfcad.tar.bz2
playGraph-b2a24da1c16e7c8f2cf16f501e6adf85f52dfcad.zip
Merge branch 'master' of github.com:jodersky/playGraph into dirty
-rw-r--r--app/js/directives.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/js/directives.js b/app/js/directives.js
index c794254..d20c034 100644
--- a/app/js/directives.js
+++ b/app/js/directives.js
@@ -35,9 +35,10 @@ app.directive('pgLine', function () {
// Create a new path and set its stroke color to black:
path = new paper.Path({
segments: [event.point],
- strokeColor: 'black',
- strokeWidth: 2,
- fullySelected: true
+ strokeColor: 'rgba(7,140,255,.5)',
+ strokeWidth: 100,
+ fullySelected: true,
+ strokeCap: 'round'
});
selected = null;
};
@@ -64,7 +65,7 @@ app.directive('pgLine', function () {
var points = Array();
// When the mouse is released, simplify it:
- path.smooth();
+ path.simplify(1);
for(var i=0; i<path._segments.length; i++)
{