Merge pull request #154 from Annis-Monadjem/master
replace "progress" with "timeFraction" for clarity
This commit is contained in:
commit
1a2982650d
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ If we want to speed up the animation, we can use `progress` in the power `n`.
|
|||
For instance, a parabolic curve:
|
||||
|
||||
```js
|
||||
function quad(progress) {
|
||||
return Math.pow(progress, 2)
|
||||
function quad(timeFraction) {
|
||||
return Math.pow(timeFraction, 2)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue