mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 13:21:07 +01:00
18 lines
336 B
Plaintext
18 lines
336 B
Plaintext
import processing.opengl.*;
|
|
|
|
public void setup() {
|
|
size(800, 600, OPENGL);
|
|
orientation(LANDSCAPE);
|
|
fill(0);
|
|
}
|
|
|
|
public void draw() {
|
|
background(255);
|
|
for (int i = 0; i < 1000; i++) {
|
|
float x = random(width);
|
|
float y = random(height);
|
|
text("HELLO", x, y);
|
|
}
|
|
if (frameCount % 10 == 0) println(frameRate);
|
|
}
|