mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-05 12:39:15 +01:00
processing-js 0.4 has been merged in some relevant parts basic and topic scripts added for test color handling fixed, more scripts show up now
24 lines
370 B
Plaintext
24 lines
370 B
Plaintext
PGraphics pg;
|
|
|
|
void setup() {
|
|
size(200, 200);
|
|
pg = createGraphics(80, 80, P3D);
|
|
}
|
|
|
|
void draw() {
|
|
fill(0, 12);
|
|
rect(0, 0, width, height);
|
|
fill(255);
|
|
noStroke();
|
|
ellipse(mouseX, mouseY, 60, 60);
|
|
|
|
pg.beginDraw();
|
|
pg.background(102);
|
|
pg.noFill();
|
|
pg.stroke(255);
|
|
pg.ellipse(mouseX-60, mouseY-60, 60, 60);
|
|
pg.endDraw();
|
|
|
|
image(pg, 60, 60);
|
|
}
|