From 43a69ad5fea97d4858f57aff7963586ed77bdaba Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 13 Feb 2016 09:28:28 -0500 Subject: [PATCH] add additional settings() note (#4211) --- core/src/processing/core/PApplet.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 88ef59d16..b555560c8 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1258,6 +1258,9 @@ public class PApplet implements PConstants { // When running from the PDE, say setup(), otherwise say settings() final String where = external ? "setup" : "settings"; PGraphics.showWarning("%s() can only be used inside %s()", method, where); + if (external) { + PGraphics.showWarning("When run from the PDE, %s() is automatically moved from setup() to settings()", method); + } } @@ -11145,9 +11148,9 @@ public class PApplet implements PConstants { /** * ( begin auto-generated from clip.xml ) * - * Limits the rendering to the boundaries of a rectangle defined - * by the parameters. The boundaries are drawn based on the state - * of the imageMode() fuction, either CORNER, CORNERS, or CENTER. + * Limits the rendering to the boundaries of a rectangle defined + * by the parameters. The boundaries are drawn based on the state + * of the imageMode() fuction, either CORNER, CORNERS, or CENTER. * * ( end auto-generated ) *