diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 2ba193eda..a249684b8 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -3454,8 +3454,6 @@ public class PGraphics extends PImage implements PConstants { } /** - * @param a x-coordinate of the image - * @param b y-coordinate of the image * @param c width to display the image * @param d height to display the image */ diff --git a/java/examples/Basics/Structure/CreateGraphics/CreateGraphics.pde b/java/examples/Basics/Structure/CreateGraphics/CreateGraphics.pde index fe98f68dc..62d698474 100644 --- a/java/examples/Basics/Structure/CreateGraphics/CreateGraphics.pde +++ b/java/examples/Basics/Structure/CreateGraphics/CreateGraphics.pde @@ -2,7 +2,7 @@ * Create Graphics. * * The createGraphics() function creates an object from the PGraphics class - * (PGraphics is the main graphics and rendering context for Processing). + * PGraphics is the main graphics and rendering context for Processing. * The beginDraw() method is necessary to prepare for drawing and endDraw() is * necessary to finish. Use this class if you need to draw into an off-screen * graphics buffer or to maintain two contexts with different properties. @@ -29,5 +29,6 @@ void draw() { pg.ellipse(mouseX-120, mouseY-60, 60, 60); pg.endDraw(); + // Draw the offscreen buffer to the screen with image() image(pg, 120, 60); }