Skip to content

Commit 8cb398f

Browse files
Update src/data/examples/zh-Hans/08_Math/13_noise1D.js
Co-Authored-By: Kenneth Lim <[email protected]>
1 parent a1289a4 commit 8cb398f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/examples/zh-Hans/08_Math/13_noise1D.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function draw() {
1616
fill(0, 10);
1717
rect(0, 0, width, height);
1818

19-
//float n = random(0,width); // 尝试用这一行代替 noise()
19+
//let n = random(0,width); // 尝试用这一行代替 noise()
2020

2121
// 基于 xoff 和 scale 得到一个噪声值
2222
// 并根据窗口宽度进行缩放

0 commit comments

Comments
 (0)