Files
processing4/java/examples/OpenGL/Performance/TextRendering/TextRendering.pde
2012-07-20 20:24:58 +00:00

17 lines
312 B
Plaintext
Executable File

import processing.opengl.*;
public void setup() {
size(800, 600, OPENGL);
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);
}