Skip to content

Commit 7e64e0e

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/data/examples/zh-Hans/08_Math/06_sinewave.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function draw() {
2727

2828
function calcWave() {
2929
// theta 增量(尝试赋予 ‘角速度’ 不同的数值)
30+
theta += 0.02;
31+
3032
// 对于每一个 x 值,使用正弦函数计算 y 值
3133
let x = theta;
3234
for (let i = 0; i < yvalues.length; i++) {

0 commit comments

Comments
 (0)