From 40e5a570f6b008a1e2feed1143ba80ffaf809bd1 Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 24 Jun 2020 10:39:02 +0100 Subject: [PATCH] interpolation fix --- subjects/interpolation/README.md | 34 +++++++++++++++----------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/subjects/interpolation/README.md b/subjects/interpolation/README.md index 37f586b07..a709faa88 100644 --- a/subjects/interpolation/README.md +++ b/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]) - ### Example ``` @@ -21,25 +20,24 @@ duration = 10 t | -10 |___________________. <- execute callback([1.0, 10]) - | | - | | - 8 |_______________. | - | | | - | | | - 6 |___________. | | - | | | | - | | | | - 4 |_______. | | | - | | | | | - | | | | | - 2 |___. | | | | - | | | | | | - |___|___|___|___|___|__d - 0 0.2 0.4 0.6 0.8 1 +10 |_______________. <- execute callback([1.0, 10]) + | | + | | + 8 |___________. | + | | | + | | | + 6 |_______. | | + | | | | + | | | | + 4 |___. | | | + | | | | | + | | | | | + 2 . | | | | + | | | | | + |___|___|___|___|___d + 0 0.2 0.4 0.6 0.8 ``` - ### Notions - [javascript.info/settimeout-setinterval](https://javascript.info/settimeout-setinterval)