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

22 lines
261 B
Plaintext

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