mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-11 20:50:51 -04:00
Rename Curve#getParameter(length) -> Curve#getParameterAt(offset)
This commit is contained in:
parent
778a161ba0
commit
b13c7622c8
5 changed files with 26 additions and 27 deletions
examples/Scripts
|
@ -39,8 +39,8 @@
|
|||
} else {
|
||||
for (var i = 0, pos = 0; i <= num; i++, pos += step) {
|
||||
var t = iteratively
|
||||
? curve.getParameter(step, prev)
|
||||
: curve.getParameter(pos);
|
||||
? curve.getParameterAt(step, prev)
|
||||
: curve.getParameterAt(pos);
|
||||
var point = curve.getPoint(t);
|
||||
var circle = new Path.Circle(point, step / 2);
|
||||
circle.strokeColor = 'red';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue