mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
20 lines
262 B
Plaintext
20 lines
262 B
Plaintext
PGraphics pg;
|
|
|
|
void setup() {
|
|
size(400, 400, P3D);
|
|
|
|
pg = createGraphics(400, 400, P3D);
|
|
}
|
|
|
|
void draw() {
|
|
background(0);
|
|
|
|
pg.beginDraw();
|
|
pg.background(255, 0, 0);
|
|
pg.ellipse(mouseX, mouseY, 100, 100);
|
|
pg.endDraw();
|
|
|
|
image(pg, 0, 0, 400, 400);
|
|
}
|
|
|