diff --git a/content/api_en/clear.xml b/content/api_en/clear.xml index 5c0ce2e63..2ddeb2a72 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.beginDraw(); pg.clear(); + pg.endDraw(); } ]]>