mirror of
https://github.com/processing/processing4.git
synced 2026-04-17 01:39:14 +02:00
22 lines
366 B
Plaintext
Executable File
22 lines
366 B
Plaintext
Executable File
|
|
// Based on code 15-09 (p. 131)
|
|
|
|
|
|
size(750, 2775);
|
|
|
|
float xnoise = 0.0;
|
|
float ynoise = 0.0;
|
|
float inc = 0.005;
|
|
for (int y = 0; y < height; y++) {
|
|
for (int x = 0; x < width; x++) {
|
|
float gray = noise(xnoise, ynoise) * 255;
|
|
stroke(gray);
|
|
point(x, y);
|
|
xnoise = xnoise + inc;
|
|
}
|
|
xnoise = 0;
|
|
ynoise = ynoise + inc;
|
|
}
|
|
|
|
//saveFrame("page_126.tif");
|