Browse Source

interpolation fix

pull/634/head
lee 4 years ago
parent
commit
40e5a570f6
  1. 34
      subjects/interpolation/README.md

34
subjects/interpolation/README.md

@ -10,7 +10,6 @@ All the points must be calculated in the duration time.
For each interpolation point you must execute and pass as parameters to the callback the interpolation point ([x, y]) For each interpolation point you must execute and pass as parameters to the callback the interpolation point ([x, y])
### Example ### Example
``` ```
@ -21,25 +20,24 @@ duration = 10
t t
| |
10 |___________________. <- execute callback([1.0, 10]) 10 |_______________. <- execute callback([1.0, 10])
| | | |
| | | |
8 |_______________. | 8 |___________. |
| | | | | |
| | | | | |
6 |___________. | | 6 |_______. | |
| | | | | | | |
| | | | | | | |
4 |_______. | | | 4 |___. | | |
| | | | | | | | | |
| | | | | | | | | |
2 |___. | | | | 2 . | | | |
| | | | | | | | | | |
|___|___|___|___|___|__d |___|___|___|___|___d
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8
``` ```
### Notions ### Notions
- [javascript.info/settimeout-setinterval](https://javascript.info/settimeout-setinterval) - [javascript.info/settimeout-setinterval](https://javascript.info/settimeout-setinterval)

Loading…
Cancel
Save