diff --git a/content/api_en/clear.xml b/content/api_en/clear.xml index c0a2d9e5e..b1893033f 100644 --- a/content/api_en/clear.xml +++ b/content/api_en/clear.xml @@ -29,7 +29,9 @@ void draw() { // Click to clear the PGraphics object void mousePressed() { - pg.clear(); + pg.beginDraw(); //not required with JAVA2D + pg.clear(); + pg.endDraw(); //not required with JAVA2D } ]]>