Files
sunny9898/task8/wk7/wk7_example7c/wk7_example7c.pde
louiscklaw 5637fbf94f update,
2025-02-01 02:07:58 +08:00

16 lines
263 B
Plaintext

float y = 0; // change with time
void setup() {
size(600, 400);
}
void draw() {
background(255);
float x = 0; // change with horizontal position
for (int i = 0; i < width; i++) {
point(i, 150 + noise(x, y) * 200);
x += 0.01;
}
y += 0.003;
}