@@ -13268,12 +13268,76 @@ public void text(float num, float x, float y, float z) {
13268
13268
}
13269
13269
13270
13270
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
+ */
13271
13303
public void push() {
13272
13304
if (recorder != null) recorder.push();
13273
13305
g.push();
13274
13306
}
13275
13307
13276
13308
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
+ */
13277
13341
public void pop() {
13278
13342
if (recorder != null) recorder.pop();
13279
13343
g.pop();
0 commit comments