Examples updates to 640 x 360 pixels

This commit is contained in:
Casey Reas
2011-08-05 18:26:51 +00:00
parent f1c7aabf14
commit 9b7de8d6b7
52 changed files with 295 additions and 302 deletions
@@ -11,8 +11,9 @@
PGraphics pg;
void setup() {
size(200, 200);
pg = createGraphics(80, 80, P2D);
size(640, 360);
smooth();
pg = createGraphics(400, 200, P2D);
}
void draw() {
@@ -23,11 +24,12 @@ void draw() {
ellipse(mouseX, mouseY, 60, 60);
pg.beginDraw();
pg.background(102);
pg.smooth();
pg.background(51);
pg.noFill();
pg.stroke(255);
pg.ellipse(mouseX-60, mouseY-60, 60, 60);
pg.ellipse(mouseX-120, mouseY-60, 60, 60);
pg.endDraw();
image(pg, 60, 60);
image(pg, 120, 60);
}