@@ -168,7 +168,7 @@ let perlin; // will be initialized lazily by noise() or noiseSeed()
168
168
* let noiseScale = 0.002;
169
169
*
170
170
* // Iterate from left to right.
171
- * for (let x = 0; x < 100 ; x += 1) {
171
+ * for (let x = 0; x < width ; x += 1) {
172
172
* // Scale the input coordinates.
173
173
* let nx = noiseScale * x;
174
174
* let nt = noiseScale * frameCount;
@@ -195,9 +195,9 @@ let perlin; // will be initialized lazily by noise() or noiseSeed()
195
195
* let noiseScale = 0.01;
196
196
*
197
197
* // Iterate from top to bottom.
198
- * for (let y = 0; y < 100 ; y += 1) {
198
+ * for (let y = 0; y < height ; y += 1) {
199
199
* // Iterate from left to right.
200
- * for (let x = 0; x < 100 ; x += 1) {
200
+ * for (let x = 0; x < width ; x += 1) {
201
201
* // Scale the input coordinates.
202
202
* let nx = noiseScale * x;
203
203
* let ny = noiseScale * y;
@@ -230,7 +230,7 @@ let perlin; // will be initialized lazily by noise() or noiseSeed()
230
230
* let noiseScale = 0.009;
231
231
*
232
232
* // Iterate from top to bottom.
233
- * for (let y = 0; y < 100 ; y += 1) {
233
+ * for (let y = 0; y < height ; y += 1) {
234
234
* // Iterate from left to right.
235
235
* for (let x = 0; x < width; x += 1) {
236
236
* // Scale the input coordinates.
@@ -361,9 +361,9 @@ p5.prototype.noise = function(x, y = 0, z = 0) {
361
361
* let noiseScale = 0.02;
362
362
*
363
363
* // Iterate from top to bottom.
364
- * for (let y = 0; y < 100 ; y += 1) {
364
+ * for (let y = 0; y < height ; y += 1) {
365
365
* // Iterate from left to right.
366
- * for (let x = 0; x < 50 ; x += 1) {
366
+ * for (let x = 0; x < width / 2 ; x += 1) {
367
367
* // Scale the input coordinates.
368
368
* let nx = noiseScale * x;
369
369
* let ny = noiseScale * y;
0 commit comments