Skip to content

Commit 0a9cad7

Browse files
committed
Update for pop() and push() reference, re-genererated PApplet
1 parent 6f1b231 commit 0a9cad7

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13268,12 +13268,76 @@ public void text(float num, float x, float y, float z) {
1326813268
}
1326913269

1327013270

13271+
/**
13272+
* ( begin auto-generated from push.xml )
13273+
*
13274+
* The <b>push()</b> function saves the current drawing style
13275+
* settings and transformations, while <b>pop()</b> restores these
13276+
* settings. Note that these functions are always used together.
13277+
* They allow you to change the style and transformation settings
13278+
* and later return to what you had. When a new state is started
13279+
* with push(), it builds on the current style and transform
13280+
* information.<br />
13281+
* <br />
13282+
* <b>push() stores information related to the current
13283+
* transformation state and style settings controlled by the
13284+
* following functions: <b>rotate()</b>, <b>translate()</b>,
13285+
* <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
13286+
* <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
13287+
* <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
13288+
* <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
13289+
* <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.<br />
13290+
* <br />
13291+
* The <b>push()</b> and <b>pop()</b> functions were added with
13292+
* Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
13293+
* <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
13294+
* The difference is that push() and pop() control both the
13295+
* transformations (rotate, scale, translate) and the drawing styles
13296+
* at the same time.
13297+
*
13298+
* ( end auto-generated )
13299+
*
13300+
* @webref structure
13301+
* @see PGraphics#pop()
13302+
*/
1327113303
public void push() {
1327213304
if (recorder != null) recorder.push();
1327313305
g.push();
1327413306
}
1327513307

1327613308

13309+
/**
13310+
* ( begin auto-generated from pop.xml )
13311+
*
13312+
* The <b>pop()</b> function restores the previous drawing style
13313+
* settings and transformations after <b>push()</b> has changed them.
13314+
* Note that these functions are always used together. They allow
13315+
* you to change the style and transformation settings and later
13316+
* return to what you had. When a new state is started with push(),
13317+
* it builds on the current style and transform information.<br />
13318+
* <br />
13319+
* <br />
13320+
* <b>push() stores information related to the current
13321+
* transformation state and style settings controlled by the
13322+
* following functions: <b>rotate()</b>, <b>translate()</b>,
13323+
* <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
13324+
* <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
13325+
* <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
13326+
* <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
13327+
* <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.<br />
13328+
* <br />
13329+
* The <b>push()</b> and <b>pop()</b> functions were added with
13330+
* Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
13331+
* <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
13332+
* The difference is that push() and pop() control both the
13333+
* transformations (rotate, scale, translate) and the drawing styles
13334+
* at the same time.
13335+
*
13336+
* ( end auto-generated )
13337+
*
13338+
* @webref structure
13339+
* @see PGraphics#push()
13340+
*/
1327713341
public void pop() {
1327813342
if (recorder != null) recorder.pop();
1327913343
g.pop();

0 commit comments

Comments
 (0)