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

18 lines
301 B
Plaintext
Executable File

public void setup() {
size(800, 600, P2D);
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);
}