mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Explicitly use continuous smooth in a couple of examples.
This commit is contained in:
parent
aba6f03230
commit
af799976d4
4 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
|||
var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1));
|
||||
path.add(offset + vector);
|
||||
}
|
||||
path.smooth();
|
||||
path.smooth({ continuous: true });
|
||||
layer.insertChild(0, new Group({
|
||||
children: [path],
|
||||
applyMatrix: false
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
path.segments[i].point.y = yPos;
|
||||
}
|
||||
if (smooth)
|
||||
path.smooth();
|
||||
path.smooth({ continuous: true });
|
||||
}
|
||||
|
||||
function onMouseMove(event) {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
vector.length = length;
|
||||
nextSegment.point = segment.point - vector;
|
||||
}
|
||||
path.smooth();
|
||||
path.smooth({ continuous: true });
|
||||
}
|
||||
|
||||
function onMouseDown(event) {
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
for (var j = 0, l = springs.length; j < l; j++) {
|
||||
springs[j].update();
|
||||
}
|
||||
path.smooth();
|
||||
path.smooth({ continuous: true });
|
||||
}
|
||||
|
||||
function onKeyDown(event) {
|
||||
|
|
Loading…
Reference in a new issue