Skip to content

Commit a1289a4

Browse files
Update src/data/examples/zh-Hans/08_Math/10_Interpolate.js
Co-Authored-By: Kenneth Lim <[email protected]>
1 parent 7e64e0e commit a1289a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/examples/zh-Hans/08_Math/10_Interpolate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function draw() {
2121
// amt 参数为两个值之间的插值量
2222
// 0.0 为第一个值,0.1 为非常接近第一个值,0.5 为两者之间,等等
2323

24-
// 这里我们每帧移动 5% 的圆至鼠标的距离
24+
// 这里我们每帧移动 5% 至鼠标的距离
2525
x = lerp(x, mouseX, 0.05);
2626
y = lerp(y, mouseY, 0.05);
2727

0 commit comments

Comments
 (0)