mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 19:31:16 +01:00
16 lines
256 B
Plaintext
16 lines
256 B
Plaintext
void setup() {
|
|
size(400, 400, P3D);
|
|
|
|
background(0);
|
|
loadPixels();
|
|
}
|
|
|
|
void draw() {
|
|
for (int i = 0; i < pixels.length; i++) {
|
|
pixels[i] = color(random(255), random(255), random(255));
|
|
}
|
|
updatePixels();
|
|
|
|
println(frameRate);
|
|
}
|