Files
processing4/java/examples/Demos/Performance/TextRendering/TextRendering.pde
Casey Reas 3494890075
2012-08-31 03:10:40 +00:00

16 lines
280 B
Plaintext
Executable File

public void setup() {
size(800, 600, P2D);
fill(0);
}
public void draw() {
background(255);
for (int i = 0; i < 10000; i++) {
float x = random(width);
float y = random(height);
text("HELLO", x, y);
}
if (frameCount % 10 == 0) println(frameRate);
}