picrate 1.1.0-java → 1.2.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -207,12 +207,12 @@ public class PGraphics extends PImage implements PConstants {
207
207
  /**
208
208
  * Array of hint[] items. These are hacks to get around various
209
209
  * temporary workarounds inside the environment.
210
- *
210
+ *
211
211
  * Note that this array cannot be static, as a hint() may result in a
212
212
  * runtime change specific to a renderer. For instance, calling
213
213
  * hint(DISABLE_DEPTH_TEST) has to call glDisable() right away on an
214
214
  * instance of PGraphicsOpenGL.
215
- *
215
+ *
216
216
  * The hints[] array is allocated early on because it might
217
217
  * be used inside beginDraw(), allocate(), etc.
218
218
  */
@@ -737,9 +737,10 @@ public class PGraphics extends PImage implements PConstants {
737
737
 
738
738
 
739
739
  /**
740
- * Set (or unset) this as the main drawing surface. Meaning that it can
741
- * safely be set to opaque (and given a default gray background), or anything
742
- * else that goes along with that.
740
+ * Set (or unset) this as the main drawing surface.Meaning that it can
741
+ safely be set to opaque (and given a default gray background), or anything
742
+ else that goes along with that.
743
+ * @param primary
743
744
  */
744
745
  public void setPrimary(boolean primary) { // ignore
745
746
  this.primaryGraphics = primary;
@@ -910,7 +911,7 @@ public class PGraphics extends PImage implements PConstants {
910
911
  *
911
912
  * ( end auto-generated )
912
913
  * <h3>Advanced</h3>
913
- *
914
+ *
914
915
  * When creating your own PGraphics, you should call this when
915
916
  * you're finished drawing.
916
917
  *
@@ -1087,7 +1088,7 @@ public class PGraphics extends PImage implements PConstants {
1087
1088
  * obscure rendering features that cannot be implemented in a consistent
1088
1089
  * manner across renderers. Many options will often graduate to standard
1089
1090
  * features instead of hints over time.
1090
- *
1091
+ * <br/> <br/>
1091
1092
  * hint(ENABLE_OPENGL_4X_SMOOTH) - Enable 4x anti-aliasing for P3D. This
1092
1093
  * can help force anti-aliasing if it has not been enabled by the user. On
1093
1094
  * some graphics cards, this can also be set by the graphics driver's
@@ -1095,13 +1096,13 @@ public class PGraphics extends PImage implements PConstants {
1095
1096
  * be called immediately after the size() command because it resets the
1096
1097
  * renderer, obliterating any settings and anything drawn (and like size(),
1097
1098
  * re-running the code that came before it again).
1098
- *
1099
+ * <br/> <br/>
1099
1100
  * hint(DISABLE_OPENGL_2X_SMOOTH) - In Processing 1.0, Processing always
1100
1101
  * enables 2x smoothing when the P3D renderer is used. This hint disables
1101
1102
  * the default 2x smoothing and returns the smoothing behavior found in
1102
1103
  * earlier releases, where smooth() and noSmooth() could be used to enable
1103
1104
  * and disable smoothing, though the quality was inferior.
1104
- *
1105
+ * <br/> <br/>
1105
1106
  * hint(ENABLE_NATIVE_FONTS) - Use the native version fonts when they are
1106
1107
  * installed, rather than the bitmapped version from a .vlw file. This is
1107
1108
  * useful with the default (or JAVA2D) renderer setting, as it will improve
@@ -1110,7 +1111,7 @@ public class PGraphics extends PImage implements PConstants {
1110
1111
  * machine (because you have the font installed) but lousy on others'
1111
1112
  * machines if the identical font is unavailable. This option can only be
1112
1113
  * set per-sketch, and must be called before any use of textFont().
1113
- *
1114
+ * <br/> <br/>
1114
1115
  * hint(DISABLE_DEPTH_TEST) - Disable the zbuffer, allowing you to draw on
1115
1116
  * top of everything at will. When depth testing is disabled, items will be
1116
1117
  * drawn to the screen sequentially, like a painting. This hint is most
@@ -1120,14 +1121,14 @@ public class PGraphics extends PImage implements PConstants {
1120
1121
  * hint(ENABLE_DEPTH_TEST), but note that with the depth buffer cleared,
1121
1122
  * any 3D drawing that happens later in draw() will ignore existing shapes
1122
1123
  * on the screen.
1123
- *
1124
+ * <br/> <br/>
1124
1125
  * hint(ENABLE_DEPTH_SORT) - Enable primitive z-sorting of triangles and
1125
1126
  * lines in P3D and OPENGL. This can slow performance considerably, and the
1126
1127
  * algorithm is not yet perfect. Restore the default with hint(DISABLE_DEPTH_SORT).
1127
- *
1128
+ * <br/> <br/>
1128
1129
  * hint(DISABLE_OPENGL_ERROR_REPORT) - Speeds up the P3D renderer setting
1129
1130
  * by not checking for errors while running. Undo with hint(ENABLE_OPENGL_ERROR_REPORT).
1130
- *
1131
+ * <br/> <br/>
1131
1132
  * hint(ENABLE_BUFFER_READING) - Depth and stencil buffers in P2D/P3D will be
1132
1133
  * downsampled to make PGL#readPixels work with multisampling. Enabling this
1133
1134
  * introduces some overhead, so if you experience bad performance, disable
@@ -1136,17 +1137,17 @@ public class PGraphics extends PImage implements PConstants {
1136
1137
  * creating your PGraphics2D/3D. You can restore the default with
1137
1138
  * hint(DISABLE_BUFFER_READING) if you don't plan to read depth from
1138
1139
  * this PGraphics anymore.
1139
- *
1140
+ * <br/> <br/>
1140
1141
  * hint(ENABLE_KEY_REPEAT) - Auto-repeating key events are discarded
1141
1142
  * by default (works only in P2D/P3D); use this hint to get all the key events
1142
1143
  * (including auto-repeated). Call hint(DISABLE_KEY_REPEAT) to get events
1143
1144
  * only when the key goes physically up or down.
1144
- *
1145
+ * <br/> <br/>
1145
1146
  * hint(DISABLE_ASYNC_SAVEFRAME) - P2D/P3D only - save() and saveFrame()
1146
1147
  * will not use separate threads for saving and will block until the image
1147
1148
  * is written to the drive. This was the default behavior in 3.0b7 and before.
1148
1149
  * To enable, call hint(ENABLE_ASYNC_SAVEFRAME).
1149
- *
1150
+ * <br/> <br/>
1150
1151
  * As of release 0149, unhint() has been removed in favor of adding
1151
1152
  * additional ENABLE/DISABLE constants to reset the default behavior. This
1152
1153
  * prevents the double negatives, and also reinforces which hints can be
@@ -1208,12 +1209,12 @@ public class PGraphics extends PImage implements PConstants {
1208
1209
  * specifies a position in 2D and the <b>vertex()</b> function with three
1209
1210
  * parameters specifies a position in 3D. Each shape will be outlined with
1210
1211
  * the current stroke color and filled with the fill color.
1211
- *
1212
+ * <br/> <br/>
1212
1213
  * Transformations such as <b>translate()</b>, <b>rotate()</b>, and
1213
1214
  * <b>scale()</b> do not work within <b>beginShape()</b>. It is also not
1214
1215
  * possible to use other shapes, such as <b>ellipse()</b> or <b>rect()</b>
1215
1216
  * within <b>beginShape()</b>.
1216
- *
1217
+ * <br/> <br/>
1217
1218
  * The P3D renderer settings allow <b>stroke()</b> and <b>fill()</b>
1218
1219
  * settings to be altered per-vertex, however the default P2D renderer does
1219
1220
  * not. Settings such as <b>strokeWeight()</b>, <b>strokeCap()</b>, and
@@ -1358,7 +1359,7 @@ public class PGraphics extends PImage implements PConstants {
1358
1359
  * Sets a texture to be applied to vertex points. The <b>texture()</b>
1359
1360
  * function must be called between <b>beginShape()</b> and
1360
1361
  * <b>endShape()</b> and before any calls to <b>vertex()</b>.
1361
- *
1362
+ * <br/> <br/>
1362
1363
  * When textures are in use, the fill color is ignored. Instead, use tint()
1363
1364
  * to specify the color of the texture as it is applied to the shape.
1364
1365
  *
@@ -1605,11 +1606,11 @@ public class PGraphics extends PImage implements PConstants {
1605
1606
  * All shapes are constructed by connecting a series of vertices.
1606
1607
  * <b>vertex()</b> is used to specify the vertex coordinates for points,
1607
1608
  * lines, triangles, quads, and polygons and is used exclusively within the
1608
- * <b>beginShape()</b> and <b>endShape()</b> function.
1609
- *
1609
+ * <b>beginShape()</b> and <b>endShape()</b> function.<br />
1610
+ * <br />
1610
1611
  * Drawing a vertex in 3D using the <b>z</b> parameter requires the P3D
1611
- * parameter in combination with size as shown in the above example.
1612
- *
1612
+ * parameter in combination with size as shown in the above example.<br />
1613
+ * <br />
1613
1614
  * This function is also used to map a texture onto the geometry. The
1614
1615
  * <b>texture()</b> function declares the texture to apply to the geometry
1615
1616
  * and the <b>u</b> and <b>v</b> coordinates set define the mapping of this
@@ -1652,12 +1653,12 @@ public class PGraphics extends PImage implements PConstants {
1652
1653
  * coincident with a call to vertex. As of beta, this was moved to
1653
1654
  * the protected method you see here, and called from an optional
1654
1655
  * param of and overloaded vertex().
1655
- *
1656
+ *
1656
1657
  * The parameters depend on the current textureMode. When using
1657
1658
  * textureMode(IMAGE), the coordinates will be relative to the size
1658
1659
  * of the image texture, when used with textureMode(NORMAL),
1659
1660
  * they'll be in the range 0..1.
1660
- *
1661
+ *
1661
1662
  * Used by both PGraphics2D (for images) and PGraphics3D.
1662
1663
  */
1663
1664
  protected void vertexTexture(float u, float v) {
@@ -1724,6 +1725,7 @@ public class PGraphics extends PImage implements PConstants {
1724
1725
  * @see PShape
1725
1726
  * @see PGraphics#beginShape(int)
1726
1727
  */
1728
+
1727
1729
  public void endShape(int mode) {
1728
1730
  }
1729
1731
 
@@ -2732,11 +2734,11 @@ public class PGraphics extends PImage implements PConstants {
2732
2734
  /**
2733
2735
  * ( begin auto-generated from square.xml )
2734
2736
  *
2735
- * Draws a square to the screen. A square is a four-sided shape with
2736
- * every angle at ninety degrees and each side is the same length.
2737
- * By default, the first two parameters set the location of the
2738
- * upper-left corner, the third sets the width and height. The way
2739
- * these parameters are interpreted, however, may be changed with the
2737
+ * Draws a square to the screen. A square is a four-sided shape with
2738
+ * every angle at ninety degrees and each side is the same length.
2739
+ * By default, the first two parameters set the location of the
2740
+ * upper-left corner, the third sets the width and height. The way
2741
+ * these parameters are interpreted, however, may be changed with the
2740
2742
  * <b>rectMode()</b> function.
2741
2743
  *
2742
2744
  * ( end auto-generated )
@@ -2931,9 +2933,9 @@ public class PGraphics extends PImage implements PConstants {
2931
2933
  /**
2932
2934
  * ( begin auto-generated from circle.xml )
2933
2935
  *
2934
- * Draws a circle to the screen. By default, the first two parameters
2935
- * set the location of the center, and the third sets the shape's width
2936
- * and height. The origin may be changed with the <b>ellipseMode()</b>
2936
+ * Draws a circle to the screen. By default, the first two parameters
2937
+ * set the location of the center, and the third sets the shape's width
2938
+ * and height. The origin may be changed with the <b>ellipseMode()</b>
2937
2939
  * function.
2938
2940
  *
2939
2941
  * ( end auto-generated )
@@ -3746,8 +3748,8 @@ public class PGraphics extends PImage implements PConstants {
3746
3748
  * <b>image()</b> to set the location of one corner of the image and uses
3747
3749
  * the fourth and fifth parameters to set the opposite corner. Use
3748
3750
  * <b>imageMode(CENTER)</b> to draw images centered at the given x and y
3749
- * position.
3750
- *
3751
+ * position.<br />
3752
+ * <br />
3751
3753
  * The parameter to <b>imageMode()</b> must be written in ALL CAPS because
3752
3754
  * Processing is a case-sensitive language.
3753
3755
  *
@@ -3781,13 +3783,13 @@ public class PGraphics extends PImage implements PConstants {
3781
3783
  * <b>x</b> and <b>y</b> parameters define the location of the image from
3782
3784
  * its upper-left corner. The image is displayed at its original size
3783
3785
  * unless the <b>width</b> and <b>height</b> parameters specify a different
3784
- * size.
3785
- *
3786
+ * size.<br />
3787
+ * <br />
3786
3788
  * The <b>imageMode()</b> function changes the way the parameters work. For
3787
3789
  * example, a call to <b>imageMode(CORNERS)</b> will change the
3788
3790
  * <b>width</b> and <b>height</b> parameters to define the x and y values
3789
- * of the opposite corner of the image.
3790
- *
3791
+ * of the opposite corner of the image.<br />
3792
+ * <br />
3791
3793
  * The color of an image may be modified with the <b>tint()</b> function.
3792
3794
  * This function will maintain transparency for GIF and PNG images.
3793
3795
  *
@@ -3891,7 +3893,7 @@ public class PGraphics extends PImage implements PConstants {
3891
3893
  /**
3892
3894
  * Expects x1, y1, x2, y2 coordinates where (x2 >= x1) and (y2 >= y1).
3893
3895
  * If tint() has been called, the image will be colored.
3894
- *
3896
+ *
3895
3897
  * The default implementation draws an image as a textured quad.
3896
3898
  * The (u, v) coordinates are in image space (they're ints, after all..)
3897
3899
  */
@@ -4016,7 +4018,7 @@ public class PGraphics extends PImage implements PConstants {
4016
4018
  * to <b>shapeMode(CORNERS)</b>, for example, will change the width and
4017
4019
  * height parameters to define the x and y values of the opposite corner of
4018
4020
  * the shape.
4019
-
4021
+ * <br /><br />
4020
4022
  * Note complex shapes may draw awkwardly with P3D. This renderer does not
4021
4023
  * yet support shapes that have holes or complicated breaks.
4022
4024
  *
@@ -4165,7 +4167,7 @@ public class PGraphics extends PImage implements PConstants {
4165
4167
  * CENTER, and RIGHT set the display characteristics of the letters in
4166
4168
  * relation to the values for the <b>x</b> and <b>y</b> parameters of the
4167
4169
  * <b>text()</b> function.
4168
- *
4170
+ * <br/> <br/>
4169
4171
  * In Processing 0125 and later, an optional second parameter can be used
4170
4172
  * to vertically align the text. BASELINE is the default, and the vertical
4171
4173
  * alignment will be reset to BASELINE if the second parameter is not used.
@@ -4173,12 +4175,12 @@ public class PGraphics extends PImage implements PConstants {
4173
4175
  * offsets the line based on the current <b>textDescent()</b>. For multiple
4174
4176
  * lines, the final line will be aligned to the bottom, with the previous
4175
4177
  * lines appearing above it.
4176
- *
4178
+ * <br/> <br/>
4177
4179
  * When using <b>text()</b> with width and height parameters, BASELINE is
4178
4180
  * ignored, and treated as TOP. (Otherwise, text would by default draw
4179
4181
  * outside the box, since BASELINE is the default setting. BASELINE is not
4180
4182
  * a useful drawing mode for text drawn in a rectangle.)
4181
- *
4183
+ * <br/> <br/>
4182
4184
  * The vertical alignment is based on the value of <b>textAscent()</b>,
4183
4185
  * which many fonts do not specify correctly. It may be necessary to use a
4184
4186
  * hack and offset by a few pixels by hand so that the offset looks
@@ -4255,10 +4257,10 @@ public class PGraphics extends PImage implements PConstants {
4255
4257
  * <b>text()</b> function. If no <b>size</b> parameter is input, the font
4256
4258
  * will appear at its original size (the size it was created at with the
4257
4259
  * "Create Font..." tool) until it is changed with <b>textSize()</b>. <br
4258
- * /> Because fonts are usually bitmaped, you should create fonts at
4260
+ * /> <br /> Because fonts are usually bitmaped, you should create fonts at
4259
4261
  * the sizes that will be used most commonly. Using <b>textFont()</b>
4260
4262
  * without the size parameter will result in the cleanest-looking text. <br
4261
- * /> With the default (JAVA2D) and PDF renderers, it's also possible
4263
+ * /><br /> With the default (JAVA2D) and PDF renderers, it's also possible
4262
4264
  * to enable the use of native fonts via the command
4263
4265
  * <b>hint(ENABLE_NATIVE_FONTS)</b>. This will produce vector text in
4264
4266
  * JAVA2D sketches and PDF output in cases where the vector data is
@@ -4372,16 +4374,16 @@ public class PGraphics extends PImage implements PConstants {
4372
4374
  *
4373
4375
  * Sets the way text draws to the screen. In the default configuration, the
4374
4376
  * <b>MODEL</b> mode, it's possible to rotate, scale, and place letters in
4375
- * two and three dimensional space.
4376
- *
4377
+ * two and three dimensional space.<br />
4378
+ * <br />
4377
4379
  * The <b>SHAPE</b> mode draws text using the the glyph outlines of
4378
4380
  * individual characters rather than as textures. This mode is only
4379
4381
  * supported with the <b>PDF</b> and <b>P3D</b> renderer settings. With the
4380
4382
  * <b>PDF</b> renderer, you must call <b>textMode(SHAPE)</b> before any
4381
4383
  * other drawing occurs. If the outlines are not available, then
4382
4384
  * <b>textMode(SHAPE)</b> will be ignored and <b>textMode(MODEL)</b> will
4383
- * be used instead.
4384
- *
4385
+ * be used instead.<br />
4386
+ * <br />
4385
4387
  * The <b>textMode(SHAPE)</b> option in <b>P3D</b> can be combined with
4386
4388
  * <b>beginRaw()</b> to write vector-accurate text to 2D and 3D output
4387
4389
  * files, for instance <b>DXF</b> or <b>PDF</b>. The <b>SHAPE</b> mode is
@@ -4575,7 +4577,7 @@ public class PGraphics extends PImage implements PConstants {
4575
4577
  * with the <b>fill()</b> function. The text displays in relation to the
4576
4578
  * <b>textAlign()</b> function, which gives the option to draw to the left,
4577
4579
  * right, and center of the coordinates.
4578
-
4580
+ * <br /><br />
4579
4581
  * The <b>x2</b> and <b>y2</b> parameters define a rectangular area to
4580
4582
  * display within and may only be used with string data. For text drawn
4581
4583
  * inside a rectangle, the coordinates are interpreted based on the current
@@ -4745,11 +4747,11 @@ public class PGraphics extends PImage implements PConstants {
4745
4747
  * Draw text in a box that is constrained to a particular size.
4746
4748
  * The current rectMode() determines what the coordinates mean
4747
4749
  * (whether x1/y1/x2/y2 or x/y/w/h).
4748
- *
4750
+ * <P/>
4749
4751
  * Note that the x,y coords of the start of the box
4750
4752
  * will align with the *ascent* of the text, not the baseline,
4751
4753
  * as is the case for the other text() functions.
4752
- *
4754
+ * <P/>
4753
4755
  * Newlines that are \n (Unix newline or linefeed char, ascii 10)
4754
4756
  * are honored, and \r (carriage return, Windows and Mac OS) are
4755
4757
  * ignored.
@@ -5167,28 +5169,28 @@ public class PGraphics extends PImage implements PConstants {
5167
5169
  /**
5168
5170
  * ( begin auto-generated from push.xml )
5169
5171
  *
5170
- * The <b>push()</b> function saves the current drawing style
5171
- * settings and transformations, while <b>pop()</b> restores these
5172
- * settings. Note that these functions are always used together.
5173
- * They allow you to change the style and transformation settings
5174
- * and later return to what you had. When a new state is started
5175
- * with push(), it builds on the current style and transform
5176
- * information.
5177
- *
5178
- * <b>push()</b> stores information related to the current
5179
- * transformation state and style settings controlled by the
5180
- * following functions: <b>rotate()</b>, <b>translate()</b>,
5181
- * <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
5182
- * <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
5183
- * <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
5184
- * <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
5185
- * <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.
5186
- *
5187
- * The <b>push()</b> and <b>pop()</b> functions were added with
5188
- * Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
5189
- * <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
5190
- * The difference is that push() and pop() control both the
5191
- * transformations (rotate, scale, translate) and the drawing styles
5172
+ * The <b>push()</b> function saves the current drawing style
5173
+ * settings and transformations, while <b>pop()</b> restores these
5174
+ * settings. Note that these functions are always used together.
5175
+ * They allow you to change the style and transformation settings
5176
+ * and later return to what you had. When a new state is started
5177
+ * with push(), it builds on the current style and transform
5178
+ * information.<br />
5179
+ * <br />
5180
+ * <b>push()</b> stores information related to the current
5181
+ * transformation state and style settings controlled by the
5182
+ * following functions: <b>rotate()</b>, <b>translate()</b>,
5183
+ * <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
5184
+ * <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
5185
+ * <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
5186
+ * <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
5187
+ * <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.<br />
5188
+ * <br />
5189
+ * The <b>push()</b> and <b>pop()</b> functions were added with
5190
+ * Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
5191
+ * <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
5192
+ * The difference is that push() and pop() control both the
5193
+ * transformations (rotate, scale, translate) and the drawing styles
5192
5194
  * at the same time.
5193
5195
  *
5194
5196
  * ( end auto-generated )
@@ -5204,28 +5206,28 @@ public class PGraphics extends PImage implements PConstants {
5204
5206
  /**
5205
5207
  * ( begin auto-generated from pop.xml )
5206
5208
  *
5207
- * The <b>pop()</b> function restores the previous drawing style
5208
- * settings and transformations after <b>push()</b> has changed them.
5209
- * Note that these functions are always used together. They allow
5210
- * you to change the style and transformation settings and later
5211
- * return to what you had. When a new state is started with push(),
5212
- * it builds on the current style and transform information.
5213
- *
5214
- *
5215
- * <b>push()</b> stores information related to the current
5216
- * transformation state and style settings controlled by the
5217
- * following functions: <b>rotate()</b>, <b>translate()</b>,
5218
- * <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
5219
- * <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
5220
- * <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
5221
- * <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
5222
- * <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.
5223
- *
5224
- * The <b>push()</b> and <b>pop()</b> functions were added with
5225
- * Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
5226
- * <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
5227
- * The difference is that push() and pop() control both the
5228
- * transformations (rotate, scale, translate) and the drawing styles
5209
+ * The <b>pop()</b> function restores the previous drawing style
5210
+ * settings and transformations after <b>push()</b> has changed them.
5211
+ * Note that these functions are always used together. They allow
5212
+ * you to change the style and transformation settings and later
5213
+ * return to what you had. When a new state is started with push(),
5214
+ * it builds on the current style and transform information.<br />
5215
+ * <br />
5216
+ * <br />
5217
+ * <b>push()</b> stores information related to the current
5218
+ * transformation state and style settings controlled by the
5219
+ * following functions: <b>rotate()</b>, <b>translate()</b>,
5220
+ * <b>scale()</b>, <b>fill()</b>, <b>stroke()</b>, <b>tint()</b>,
5221
+ * <b>strokeWeight()</b>, <b>strokeCap()</b>, <b>strokeJoin()</b>,
5222
+ * <b>imageMode()</b>, <b>rectMode()</b>, <b>ellipseMode()</b>,
5223
+ * <b>colorMode()</b>, <b>textAlign()</b>, <b>textFont()</b>,
5224
+ * <b>textMode()</b>, <b>textSize()</b>, <b>textLeading()</b>.<br />
5225
+ * <br />
5226
+ * The <b>push()</b> and <b>pop()</b> functions were added with
5227
+ * Processing 3.5. They can be used in place of <b>pushMatrix()</b>,
5228
+ * <b>popMatrix()</b>, <b>pushStyles()</b>, and <b>popStyles()</b>.
5229
+ * The difference is that push() and pop() control both the
5230
+ * transformations (rotate, scale, translate) and the drawing styles
5229
5231
  * at the same time.
5230
5232
  *
5231
5233
  * ( end auto-generated )
@@ -5348,7 +5350,7 @@ public class PGraphics extends PImage implements PConstants {
5348
5350
  * Rotates a shape the amount specified by the <b>angle</b> parameter.
5349
5351
  * Angles should be specified in radians (values from 0 to TWO_PI) or
5350
5352
  * converted to radians with the <b>radians()</b> function.
5351
- *
5353
+ * <br/> <br/>
5352
5354
  * Objects are always rotated around their relative position to the origin
5353
5355
  * and positive numbers rotate objects in a clockwise direction.
5354
5356
  * Transformations apply to everything that happens after and subsequent
@@ -5356,7 +5358,7 @@ public class PGraphics extends PImage implements PConstants {
5356
5358
  * <b>rotate(HALF_PI)</b> and then <b>rotate(HALF_PI)</b> is the same as
5357
5359
  * <b>rotate(PI)</b>. All tranformations are reset when <b>draw()</b>
5358
5360
  * begins again.
5359
- *
5361
+ * <br/> <br/>
5360
5362
  * Technically, <b>rotate()</b> multiplies the current transformation
5361
5363
  * matrix by a rotation matrix. This function can be further controlled by
5362
5364
  * the <b>pushMatrix()</b> and <b>popMatrix()</b>.
@@ -5559,7 +5561,7 @@ public class PGraphics extends PImage implements PConstants {
5559
5561
  * <b>shearX(PI/2)</b> and then <b>shearX(PI/2)</b> is the same as
5560
5562
  * <b>shearX(PI)</b>. If <b>shearX()</b> is called within the
5561
5563
  * <b>draw()</b>, the transformation is reset when the loop begins again.
5562
- *
5564
+ * <br/> <br/>
5563
5565
  * Technically, <b>shearX()</b> multiplies the current transformation
5564
5566
  * matrix by a rotation matrix. This function can be further controlled by
5565
5567
  * the <b>pushMatrix()</b> and <b>popMatrix()</b> functions.
@@ -5593,7 +5595,7 @@ public class PGraphics extends PImage implements PConstants {
5593
5595
  * <b>shearY(PI/2)</b> and then <b>shearY(PI/2)</b> is the same as
5594
5596
  * <b>shearY(PI)</b>. If <b>shearY()</b> is called within the
5595
5597
  * <b>draw()</b>, the transformation is reset when the loop begins again.
5596
- *
5598
+ * <br/> <br/>
5597
5599
  * Technically, <b>shearY()</b> multiplies the current transformation
5598
5600
  * matrix by a rotation matrix. This function can be further controlled by
5599
5601
  * the <b>pushMatrix()</b> and <b>popMatrix()</b> functions.
@@ -5799,14 +5801,14 @@ public class PGraphics extends PImage implements PConstants {
5799
5801
  * The <b>beginCamera()</b> and <b>endCamera()</b> functions enable
5800
5802
  * advanced customization of the camera space. The functions are useful if
5801
5803
  * you want to more control over camera movement, however for most users,
5802
- * the <b>camera()</b> function will be sufficient..containsThe camera
5804
+ * the <b>camera()</b> function will be sufficient.<br /><br />The camera
5803
5805
  * functions will replace any transformations (such as <b>rotate()</b> or
5804
5806
  * <b>translate()</b>) that occur before them in <b>draw()</b>, but they
5805
5807
  * will not automatically replace the camera transform itself. For this
5806
5808
  * reason, camera functions should be placed at the beginning of
5807
5809
  * <b>draw()</b> (so that transformations happen afterwards), and the
5808
5810
  * <b>camera()</b> function can be used after <b>beginCamera()</b> if you
5809
- * want to reset the camera before applying transformations.<br
5811
+ * want to reset the camera before applying transformations.<br /><br
5810
5812
  * />This function sets the matrix mode to the camera matrix so calls such
5811
5813
  * as <b>translate()</b>, <b>rotate()</b>, applyMatrix() and resetMatrix()
5812
5814
  * affect the camera. <b>beginCamera()</b> should always be used with a
@@ -6115,7 +6117,7 @@ public class PGraphics extends PImage implements PConstants {
6115
6117
  * transformations (scale, rotate, translate, etc.) The X value can be used
6116
6118
  * to place an object in space relative to the location of the original
6117
6119
  * point once the transformations are no longer in use.
6118
- *
6120
+ * <br/> <br/>
6119
6121
  * In the example, the <b>modelX()</b>, <b>modelY()</b>, and
6120
6122
  * <b>modelZ()</b> functions record the location of a box in space after
6121
6123
  * being placed using a series of translate and rotate commands. After
@@ -6145,8 +6147,8 @@ public class PGraphics extends PImage implements PConstants {
6145
6147
  * returns the Y value for a given coordinate based on the current set of
6146
6148
  * transformations (scale, rotate, translate, etc.) The Y value can be used
6147
6149
  * to place an object in space relative to the location of the original
6148
- * point once the transformations are no longer in use.
6149
- *
6150
+ * point once the transformations are no longer in use.<br />
6151
+ * <br />
6150
6152
  * In the example, the <b>modelX()</b>, <b>modelY()</b>, and
6151
6153
  * <b>modelZ()</b> functions record the location of a box in space after
6152
6154
  * being placed using a series of translate and rotate commands. After
@@ -6176,8 +6178,8 @@ public class PGraphics extends PImage implements PConstants {
6176
6178
  * returns the Z value for a given coordinate based on the current set of
6177
6179
  * transformations (scale, rotate, translate, etc.) The Z value can be used
6178
6180
  * to place an object in space relative to the location of the original
6179
- * point once the transformations are no longer in use.
6180
- *
6181
+ * point once the transformations are no longer in use.<br />
6182
+ * <br />
6181
6183
  * In the example, the <b>modelX()</b>, <b>modelY()</b>, and
6182
6184
  * <b>modelZ()</b> functions record the location of a box in space after
6183
6185
  * being placed using a series of translate and rotate commands. After
@@ -6215,7 +6217,7 @@ public class PGraphics extends PImage implements PConstants {
6215
6217
  * <b>pushStyle()</b>, it builds on the current style information. The
6216
6218
  * <b>pushStyle()</b> and <b>popStyle()</b> functions can be embedded to
6217
6219
  * provide more control (see the second example above for a demonstration.)
6218
-
6220
+ * <br /><br />
6219
6221
  * The style information controlled by the following functions are included
6220
6222
  * in the style:
6221
6223
  * fill(), stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(),
@@ -6408,7 +6410,7 @@ public class PGraphics extends PImage implements PConstants {
6408
6410
  *
6409
6411
  * Sets the width of the stroke used for lines, points, and the border
6410
6412
  * around shapes. All widths are set in units of pixels.
6411
- *
6413
+ * <br/> <br/>
6412
6414
  * When drawing with P3D, series of connected lines (such as the stroke
6413
6415
  * around a polygon, triangle, or ellipse) produce unattractive results
6414
6416
  * when a thick stroke weight is set (<a
@@ -6437,7 +6439,7 @@ public class PGraphics extends PImage implements PConstants {
6437
6439
  * are either mitered, beveled, or rounded and specified with the
6438
6440
  * corresponding parameters MITER, BEVEL, and ROUND. The default joint is
6439
6441
  * MITER.
6440
- *
6442
+ * <br/> <br/>
6441
6443
  * This function is not available with the P3D renderer, (<a
6442
6444
  * href="http://code.google.com/p/processing/issues/detail?id=123">see
6443
6445
  * Issue 123</a>). More information about the renderers can be found in the
@@ -6461,7 +6463,7 @@ public class PGraphics extends PImage implements PConstants {
6461
6463
  * Sets the style for rendering line endings. These ends are either
6462
6464
  * squared, extended, or rounded and specified with the corresponding
6463
6465
  * parameters SQUARE, PROJECT, and ROUND. The default cap is ROUND.
6464
- *
6466
+ * <br/> <br/>
6465
6467
  * This function is not available with the P3D renderer (<a
6466
6468
  * href="http://code.google.com/p/processing/issues/detail?id=123">see
6467
6469
  * Issue 123</a>). More information about the renderers can be found in the
@@ -6512,7 +6514,7 @@ public class PGraphics extends PImage implements PConstants {
6512
6514
  * is either specified in terms of the RGB or HSB color depending on the
6513
6515
  * current <b>colorMode()</b> (the default color space is RGB, with each
6514
6516
  * value in the range from 0 to 255).
6515
- *
6517
+ * <br/> <br/>
6516
6518
  * When using hexadecimal notation to specify a color, use "#" or "0x"
6517
6519
  * before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six
6518
6520
  * digits to specify a color (the way colors are specified in HTML and
@@ -6520,7 +6522,7 @@ public class PGraphics extends PImage implements PConstants {
6520
6522
  * hexadecimal value must be specified with eight characters; the first two
6521
6523
  * characters define the alpha component and the remainder the red, green,
6522
6524
  * and blue components.
6523
- *
6525
+ * <br/> <br/>
6524
6526
  * The value for the parameter "gray" must be less than or equal to the
6525
6527
  * current maximum value as specified by <b>colorMode()</b>. The default
6526
6528
  * maximum value is 255.
@@ -6629,25 +6631,25 @@ public class PGraphics extends PImage implements PConstants {
6629
6631
  * ( begin auto-generated from tint.xml )
6630
6632
  *
6631
6633
  * Sets the fill value for displaying images. Images can be tinted to
6632
- * specified colors or made transparent by setting the alpha.
6633
- *
6634
+ * specified colors or made transparent by setting the alpha.<br />
6635
+ * <br />
6634
6636
  * To make an image transparent, but not change it's color, use white as
6635
6637
  * the tint color and specify an alpha value. For instance, tint(255, 128)
6636
6638
  * will make an image 50% transparent (unless <b>colorMode()</b> has been
6637
- * used).
6638
- *
6639
+ * used).<br />
6640
+ * <br />
6639
6641
  * When using hexadecimal notation to specify a color, use "#" or "0x"
6640
6642
  * before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six
6641
6643
  * digits to specify a color (the way colors are specified in HTML and
6642
6644
  * CSS). When using the hexadecimal notation starting with "0x", the
6643
6645
  * hexadecimal value must be specified with eight characters; the first two
6644
6646
  * characters define the alpha component and the remainder the red, green,
6645
- * and blue components.
6646
- *
6647
+ * and blue components.<br />
6648
+ * <br />
6647
6649
  * The value for the parameter "gray" must be less than or equal to the
6648
6650
  * current maximum value as specified by <b>colorMode()</b>. The default
6649
- * maximum value is 255.
6650
- *
6651
+ * maximum value is 255.<br />
6652
+ * <br />
6651
6653
  * The <b>tint()</b> function is also used to control the coloring of
6652
6654
  * textures in 3D.
6653
6655
  *
@@ -6753,7 +6755,7 @@ public class PGraphics extends PImage implements PConstants {
6753
6755
  * color is either specified in terms of the RGB or HSB color depending on
6754
6756
  * the current <b>colorMode()</b> (the default color space is RGB, with
6755
6757
  * each value in the range from 0 to 255).
6756
- *
6758
+ * <br/> <br/>
6757
6759
  * When using hexadecimal notation to specify a color, use "#" or "0x"
6758
6760
  * before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six
6759
6761
  * digits to specify a color (the way colors are specified in HTML and
@@ -6761,11 +6763,11 @@ public class PGraphics extends PImage implements PConstants {
6761
6763
  * hexadecimal value must be specified with eight characters; the first two
6762
6764
  * characters define the alpha component and the remainder the red, green,
6763
6765
  * and blue components.
6764
- *
6766
+ * <br/> <br/>
6765
6767
  * The value for the parameter "gray" must be less than or equal to the
6766
6768
  * current maximum value as specified by <b>colorMode()</b>. The default
6767
6769
  * maximum value is 255.
6768
- *
6770
+ * <br/> <br/>
6769
6771
  * To change the color of an image (or a texture), use tint().
6770
6772
  *
6771
6773
  * ( end auto-generated )
@@ -7243,9 +7245,9 @@ public class PGraphics extends PImage implements PConstants {
7243
7245
  *
7244
7246
  * Sets the falloff rates for point lights, spot lights, and ambient
7245
7247
  * lights. The parameters are used to determine the falloff with the
7246
- * following equation:.containsd = distance from light position to
7247
- * vertex positionfalloff = 1 / (CONSTANT + d * LINEAR + (d*d) *
7248
- * QUADRATIC).containsLike <b>fill()</b>, it affects only the elements
7248
+ * following equation:<br /><br />d = distance from light position to
7249
+ * vertex position<br />falloff = 1 / (CONSTANT + d * LINEAR + (d*d) *
7250
+ * QUADRATIC)<br /><br />Like <b>fill()</b>, it affects only the elements
7249
7251
  * which are created after it in the code. The default value if
7250
7252
  * <b>LightFalloff(1.0, 0.0, 0.0)</b>. Thinking about an ambient light with
7251
7253
  * a falloff can be tricky. It is used, for example, if you wanted a region
@@ -7313,13 +7315,13 @@ public class PGraphics extends PImage implements PConstants {
7313
7315
  * of the Processing window. The default background is light gray. In the
7314
7316
  * <b>draw()</b> function, the background color is used to clear the
7315
7317
  * display window at the beginning of each frame.
7316
- *
7318
+ * <br/> <br/>
7317
7319
  * An image can also be used as the background for a sketch, however its
7318
7320
  * width and height must be the same size as the sketch window. To resize
7319
7321
  * an image 'b' to the size of the sketch window, use b.resize(width, height).
7320
- *
7322
+ * <br/> <br/>
7321
7323
  * Images used as background will ignore the current <b>tint()</b> setting.
7322
- *
7324
+ * <br/> <br/>
7323
7325
  * It is not possible to use transparency (alpha) in background colors with
7324
7326
  * the main drawing surface, however they will work properly with <b>createGraphics()</b>.
7325
7327
  *
@@ -7450,13 +7452,13 @@ public class PGraphics extends PImage implements PConstants {
7450
7452
  /**
7451
7453
  * Takes an RGB or ARGB image and sets it as the background.
7452
7454
  * The width and height of the image must be the same size as the sketch.
7453
- * Use image.resize(width, height) to make short work of such a task.
7454
- *
7455
+ * Use image.resize(width, height) to make short work of such a task.<br/>
7456
+ * <br/>
7455
7457
  * Note that even if the image is set as RGB, the high 8 bits of each pixel
7456
7458
  * should be set opaque (0xFF000000) because the image data will be copied
7457
7459
  * directly to the screen, and non-opaque background images may have strange
7458
- * behavior. Use image.filter(OPAQUE) to handle this easily.
7459
- *
7460
+ * behavior. Use image.filter(OPAQUE) to handle this easily.<br/>
7461
+ * <br/>
7460
7462
  * When using 3D, this will also clear the zbuffer (if it exists).
7461
7463
  *
7462
7464
  * @param image PImage to set as background (must be same size as the sketch window)
@@ -7904,12 +7906,12 @@ public class PGraphics extends PImage implements PConstants {
7904
7906
  *
7905
7907
  * Extracts the red value from a color, scaled to match current
7906
7908
  * <b>colorMode()</b>. This value is always returned as a float so be
7907
- * careful not to assign it to an int value..containsThe red() function
7909
+ * careful not to assign it to an int value.<br /><br />The red() function
7908
7910
  * is easy to use and undestand, but is slower than another technique. To
7909
7911
  * achieve the same results when working in <b>colorMode(RGB, 255)</b>, but
7910
7912
  * with greater speed, use the &gt;&gt; (right shift) operator with a bit
7911
7913
  * mask. For example, the following two lines of code are equivalent:<br
7912
- * /><pre>float r1 = red(myColor);float r2 = myColor &gt;&gt; 16
7914
+ * /><pre>float r1 = red(myColor);<br />float r2 = myColor &gt;&gt; 16
7913
7915
  * &amp; 0xFF;</pre>
7914
7916
  *
7915
7917
  * ( end auto-generated )
@@ -7937,12 +7939,12 @@ public class PGraphics extends PImage implements PConstants {
7937
7939
  *
7938
7940
  * Extracts the green value from a color, scaled to match current
7939
7941
  * <b>colorMode()</b>. This value is always returned as a float so be
7940
- * careful not to assign it to an int value..containsThe <b>green()</b>
7942
+ * careful not to assign it to an int value.<br /><br />The <b>green()</b>
7941
7943
  * function is easy to use and undestand, but is slower than another
7942
7944
  * technique. To achieve the same results when working in <b>colorMode(RGB,
7943
7945
  * 255)</b>, but with greater speed, use the &gt;&gt; (right shift)
7944
7946
  * operator with a bit mask. For example, the following two lines of code
7945
- * are equivalent:<pre>float r1 = green(myColor);float r2 =
7947
+ * are equivalent:<br /><pre>float r1 = green(myColor);<br />float r2 =
7946
7948
  * myColor &gt;&gt; 8 &amp; 0xFF;</pre>
7947
7949
  *
7948
7950
  * ( end auto-generated )
@@ -7970,12 +7972,12 @@ public class PGraphics extends PImage implements PConstants {
7970
7972
  *
7971
7973
  * Extracts the blue value from a color, scaled to match current
7972
7974
  * <b>colorMode()</b>. This value is always returned as a float so be
7973
- * careful not to assign it to an int value..containsThe <b>blue()</b>
7975
+ * careful not to assign it to an int value.<br /><br />The <b>blue()</b>
7974
7976
  * function is easy to use and undestand, but is slower than another
7975
7977
  * technique. To achieve the same results when working in <b>colorMode(RGB,
7976
7978
  * 255)</b>, but with greater speed, use a bit mask to remove the other
7977
7979
  * color components. For example, the following two lines of code are
7978
- * equivalent:<pre>float r1 = blue(myColor);float r2 = myColor
7980
+ * equivalent:<br /><pre>float r1 = blue(myColor);<br />float r2 = myColor
7979
7981
  * &amp; 0xFF;</pre>
7980
7982
  *
7981
7983
  * ( end auto-generated )
@@ -8349,7 +8351,7 @@ public class PGraphics extends PImage implements PConstants {
8349
8351
  * Return true if this renderer should be drawn to the screen. Defaults to
8350
8352
  * returning true, since nearly all renderers are on-screen beasts. But can
8351
8353
  * be overridden for subclasses like PDF so that a window doesn't open up.
8352
- *
8354
+ * <br/> <br/>
8353
8355
  * A better name? showFrame, displayable, isVisible, visible, shouldDisplay,
8354
8356
  * what to call this?
8355
8357
  */