mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
20 lines
435 B
Plaintext
20 lines
435 B
Plaintext
public void setup() {
|
|
size(400, 400, P3D);
|
|
}
|
|
|
|
public void draw() {
|
|
background(255);
|
|
stroke(0, 10);
|
|
for (int i = 0; i < 5000; i++) {
|
|
float x0 = random(width);
|
|
float y0 = random(height);
|
|
float z0 = random(-100, 100);
|
|
float x1 = random(width);
|
|
float y1 = random(height);
|
|
float z1 = random(-100, 100);
|
|
|
|
line(x0, y0, z0, x1, y1, z1);
|
|
}
|
|
if (frameCount % 10 == 0) println(frameRate);
|
|
}
|