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

19 lines
333 B
Plaintext
Executable File

import processing.opengl.*;
public void setup() {
size(800, 600, OPENGL);
noStroke();
fill(0, 1);
}
public void draw() {
background(255);
for (int i = 0; i < 50000; i++) {
float x = random(width);
float y = random(height);
rect(x, y, 30, 30);
}
if (frameCount % 10 == 0) println(frameRate);
}