Explicitly use continuous smooth in a couple of examples.

This commit is contained in:
Jürg Lehni 2016-01-15 11:29:31 +01:00
parent aba6f03230
commit af799976d4
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@
var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1)); var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1));
path.add(offset + vector); path.add(offset + vector);
} }
path.smooth(); path.smooth({ continuous: true });
layer.insertChild(0, new Group({ layer.insertChild(0, new Group({
children: [path], children: [path],
applyMatrix: false applyMatrix: false

View file

@ -39,7 +39,7 @@
path.segments[i].point.y = yPos; path.segments[i].point.y = yPos;
} }
if (smooth) if (smooth)
path.smooth(); path.smooth({ continuous: true });
} }
function onMouseMove(event) { function onMouseMove(event) {

View file

@ -34,7 +34,7 @@
vector.length = length; vector.length = length;
nextSegment.point = segment.point - vector; nextSegment.point = segment.point - vector;
} }
path.smooth(); path.smooth({ continuous: true });
} }
function onMouseDown(event) { function onMouseDown(event) {

View file

@ -105,7 +105,7 @@
for (var j = 0, l = springs.length; j < l; j++) { for (var j = 0, l = springs.length; j < l; j++) {
springs[j].update(); springs[j].update();
} }
path.smooth(); path.smooth({ continuous: true });
} }
function onKeyDown(event) { function onKeyDown(event) {