mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
moving the OpenGL examples to the core
This commit is contained in:
16
java/examples/OpenGL/Pixels/SetPixels/SetPixels.pde
Normal file
16
java/examples/OpenGL/Pixels/SetPixels/SetPixels.pde
Normal file
@@ -0,0 +1,16 @@
|
||||
void setup() {
|
||||
size(400, 400, P3D);
|
||||
|
||||
background(0);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
for (int x = 0; x < width; x++) {
|
||||
for (int y = 0; y < height; y++) {
|
||||
int c = color(random(255), random(255), random(255));
|
||||
set(x, y, c);
|
||||
}
|
||||
}
|
||||
|
||||
println(frameRate);
|
||||
}
|
||||
Reference in New Issue
Block a user