propane 3.5.0-java → 3.9.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mvn/extensions.xml +1 -1
- data/.mvn/wrapper/MavenWrapperDownloader.java +1 -1
- data/.mvn/wrapper/maven-wrapper.properties +2 -2
- data/.travis.yml +1 -1
- data/CHANGELOG.md +7 -1
- data/README.md +7 -22
- data/Rakefile +3 -2
- data/lib/propane.rb +2 -1
- data/lib/propane/app.rb +4 -0
- data/lib/propane/helper_methods.rb +0 -1
- data/lib/propane/runner.rb +12 -12
- data/lib/propane/version.rb +1 -1
- data/library/pdf/pdf.rb +7 -0
- data/library/svg/svg.rb +7 -0
- data/pom.rb +65 -43
- data/pom.xml +44 -5
- data/propane.gemspec +9 -4
- data/src/main/java/japplemenubar/JAppleMenuBar.java +3 -3
- data/src/main/java/monkstone/fastmath/DegLutTables.java +111 -0
- data/src/main/java/monkstone/fastmath/Deglut.java +6 -56
- data/src/main/java/monkstone/noise/FastTerrain.java +874 -0
- data/src/main/java/monkstone/noise/Noise.java +90 -0
- data/src/main/java/monkstone/noise/NoiseGenerator.java +75 -0
- data/src/main/java/monkstone/noise/NoiseMode.java +28 -0
- data/src/main/java/monkstone/noise/OpenSimplex2F.java +881 -0
- data/src/main/java/monkstone/noise/OpenSimplex2S.java +1106 -0
- data/src/main/java/monkstone/noise/SmoothTerrain.java +1099 -0
- data/src/main/java/processing/awt/PGraphicsJava2D.java +8 -17
- data/src/main/java/processing/awt/PImageAWT.java +123 -6
- data/src/main/java/processing/awt/PShapeJava2D.java +1 -0
- data/src/main/java/processing/awt/PSurfaceAWT.java +9 -7
- data/src/main/java/processing/awt/ShimAWT.java +2 -1
- data/src/main/java/processing/core/PApplet.java +13297 -14838
- data/src/main/java/processing/core/PConstants.java +5 -5
- data/src/main/java/processing/core/PFont.java +5 -17
- data/src/main/java/processing/core/PGraphics.java +346 -351
- data/src/main/java/processing/core/PImage.java +1440 -1537
- data/src/main/java/processing/core/PMatrix2D.java +24 -7
- data/src/main/java/processing/core/PMatrix3D.java +12 -5
- data/src/main/java/processing/core/PShape.java +155 -173
- data/src/main/java/processing/core/PShapeOBJ.java +2 -0
- data/src/main/java/processing/core/PShapeSVG.java +632 -611
- data/src/main/java/processing/core/PSurface.java +15 -10
- data/src/main/java/processing/core/PSurfaceNone.java +8 -4
- data/src/main/java/processing/core/PVector.java +35 -28
- data/src/main/java/processing/data/Table.java +20 -20
- data/src/main/java/processing/data/XML.java +1 -1
- data/src/main/java/processing/event/Event.java +1 -1
- data/src/main/java/processing/event/MouseEvent.java +7 -6
- data/src/main/java/processing/javafx/PGraphicsFX2D.java +20 -345
- data/src/main/java/processing/javafx/PSurfaceFX.java +127 -125
- data/src/main/java/processing/opengl/FrameBuffer.java +2 -4
- data/src/main/java/processing/opengl/LinePath.java +4 -0
- data/src/main/java/processing/opengl/LineStroker.java +2 -6
- data/src/main/java/processing/opengl/PGL.java +72 -45
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +106 -60
- data/src/main/java/processing/opengl/PJOGL.java +15 -3
- data/src/main/java/processing/opengl/PShader.java +26 -47
- data/src/main/java/processing/opengl/PShapeOpenGL.java +1041 -1001
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +211 -208
- data/src/main/java/processing/opengl/Texture.java +7 -4
- data/src/main/java/processing/opengl/VertexBuffer.java +2 -2
- data/src/main/java/processing/pdf/PGraphicsPDF.java +581 -0
- data/src/main/java/processing/svg/PGraphicsSVG.java +378 -0
- data/test/deglut_spec_test.rb +2 -2
- data/vendors/Rakefile +22 -33
- metadata +53 -21
- data/library/simplex_noise/simplex_noise.rb +0 -5
- data/src/main/java/monkstone/noise/SimplexNoise.java +0 -436
@@ -135,7 +135,7 @@ public interface PConstants {
|
|
135
135
|
* useful in combination with the trigonometric functions <b>sin()</b> and
|
136
136
|
* <b>cos()</b>.
|
137
137
|
*
|
138
|
-
*
|
138
|
+
* ( end auto-generated )
|
139
139
|
* @webref constants
|
140
140
|
* @see PConstants#TWO_PI
|
141
141
|
* @see PConstants#TAU
|
@@ -152,7 +152,7 @@ public interface PConstants {
|
|
152
152
|
* circle to its diameter. It is useful in combination with the
|
153
153
|
* trigonometric functions <b>sin()</b> and <b>cos()</b>.
|
154
154
|
*
|
155
|
-
*
|
155
|
+
* ( end auto-generated )
|
156
156
|
* @webref constants
|
157
157
|
* @see PConstants#PI
|
158
158
|
* @see PConstants#TWO_PI
|
@@ -169,7 +169,7 @@ public interface PConstants {
|
|
169
169
|
* It is useful in combination with the trigonometric functions
|
170
170
|
* <b>sin()</b> and <b>cos()</b>.
|
171
171
|
*
|
172
|
-
*
|
172
|
+
* ( end auto-generated )
|
173
173
|
* @webref constants
|
174
174
|
* @see PConstants#PI
|
175
175
|
* @see PConstants#TWO_PI
|
@@ -185,7 +185,7 @@ public interface PConstants {
|
|
185
185
|
* It is useful in combination with the trigonometric functions
|
186
186
|
* <b>sin()</b> and <b>cos()</b>.
|
187
187
|
*
|
188
|
-
*
|
188
|
+
* ( end auto-generated )
|
189
189
|
* @webref constants
|
190
190
|
* @see PConstants#PI
|
191
191
|
* @see PConstants#TAU
|
@@ -201,7 +201,7 @@ public interface PConstants {
|
|
201
201
|
* of a circle to its diameter. It is useful in combination with the
|
202
202
|
* trigonometric functions <b>sin()</b> and <b>cos()</b>.
|
203
203
|
*
|
204
|
-
*
|
204
|
+
* ( end auto-generated )
|
205
205
|
* @webref constants
|
206
206
|
* @see PConstants#PI
|
207
207
|
* @see PConstants#TWO_PI
|
@@ -24,24 +24,12 @@
|
|
24
24
|
|
25
25
|
package processing.core;
|
26
26
|
|
27
|
-
import java.awt
|
28
|
-
import java.awt.Font;
|
29
|
-
import java.awt.FontMetrics;
|
30
|
-
import java.awt.Graphics2D;
|
31
|
-
import java.awt.GraphicsEnvironment;
|
32
|
-
import java.awt.RenderingHints;
|
33
|
-
import java.awt.Shape;
|
34
|
-
import java.awt.Toolkit;
|
27
|
+
import java.awt.*;
|
35
28
|
import java.awt.font.FontRenderContext;
|
36
29
|
import java.awt.font.GlyphVector;
|
37
30
|
import java.awt.geom.PathIterator;
|
38
|
-
import java.awt.image
|
39
|
-
import java.
|
40
|
-
import java.io.DataInputStream;
|
41
|
-
import java.io.DataOutputStream;
|
42
|
-
import java.io.IOException;
|
43
|
-
import java.io.InputStream;
|
44
|
-
import java.io.OutputStream;
|
31
|
+
import java.awt.image.*;
|
32
|
+
import java.io.*;
|
45
33
|
import java.util.Arrays;
|
46
34
|
import java.util.HashMap;
|
47
35
|
|
@@ -198,7 +186,7 @@ public class PFont implements PConstants {
|
|
198
186
|
* <b>createFont()</b> function for dynamically converting fonts into a
|
199
187
|
* format to use with Processing.
|
200
188
|
*
|
201
|
-
*
|
189
|
+
* ( end auto-generated )
|
202
190
|
*
|
203
191
|
* @nowebref
|
204
192
|
* @param font font the font object to create from
|
@@ -890,7 +878,7 @@ public class PFont implements PConstants {
|
|
890
878
|
* fonts. This function is meant as a tool for programming local
|
891
879
|
* applications and is not recommended for use in applets.
|
892
880
|
*
|
893
|
-
*
|
881
|
+
* ( end auto-generated )
|
894
882
|
*
|
895
883
|
* @webref pfont
|
896
884
|
* @usage application
|
@@ -63,7 +63,7 @@ import processing.opengl.PShader;
|
|
63
63
|
* methods for this class are extensive. For a complete list, visit the <a
|
64
64
|
* href="http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/">developer's reference.</a>
|
65
65
|
*
|
66
|
-
*
|
66
|
+
* ( end auto-generated )
|
67
67
|
*
|
68
68
|
* <h3>Advanced</h3>
|
69
69
|
* Main graphics and rendering context, as well as the base API implementation.
|
@@ -109,7 +109,7 @@ import processing.opengl.PShader;
|
|
109
109
|
* instance, imageImpl() handles drawing an image whose x/y/w/h and u/v coords
|
110
110
|
* have been specified, and screen placement (independent of imageMode) has
|
111
111
|
* been determined. There's no point in all renderers implementing the
|
112
|
-
* <
|
112
|
+
* <tt>if (imageMode == BLAH)</tt> placement/sizing logic, so that's handled
|
113
113
|
* by PGraphics, which then calls imageImpl() once all that is figured out.
|
114
114
|
*
|
115
115
|
* <h2>His brother PImage</h2>
|
@@ -136,7 +136,7 @@ import processing.opengl.PShader;
|
|
136
136
|
*
|
137
137
|
* <h2>What's in the PGraphics documentation, what ain't</h2>
|
138
138
|
* Some things are noted here, some things are not. For public API, always
|
139
|
-
* refer to the <a href="http://processing.org/reference">reference</
|
139
|
+
* refer to the <a href="http://processing.org/reference">reference</A>
|
140
140
|
* on Processing.org for proper explanations. <b>No attempt has been made to
|
141
141
|
* keep the javadoc up to date or complete.</b> It's an enormous task for
|
142
142
|
* which we simply do not have the time. That is, it's not something that
|
@@ -628,8 +628,8 @@ public class PGraphics extends PImage implements PConstants {
|
|
628
628
|
sinLUT = new float[SINCOS_LENGTH];
|
629
629
|
cosLUT = new float[SINCOS_LENGTH];
|
630
630
|
for (int i = 0; i < SINCOS_LENGTH; i++) {
|
631
|
-
sinLUT[i] = (float) Math.sin(i *
|
632
|
-
cosLUT[i] = (float) Math.cos(i *
|
631
|
+
sinLUT[i] = (float) Math.sin(Math.toRadians(i * SINCOS_PRECISION));
|
632
|
+
cosLUT[i] = (float) Math.cos(Math.toRadians(i * SINCOS_PRECISION));
|
633
633
|
}
|
634
634
|
}
|
635
635
|
|
@@ -741,9 +741,10 @@ public class PGraphics extends PImage implements PConstants {
|
|
741
741
|
|
742
742
|
|
743
743
|
/**
|
744
|
-
* Set (or unset) this as the main drawing surface.
|
745
|
-
|
746
|
-
|
744
|
+
* Set (or unset) this as the main drawing surface.Meaning that it can
|
745
|
+
safely be set to opaque (and given a default gray background), or anything
|
746
|
+
else that goes along with that.
|
747
|
+
* @param primary
|
747
748
|
*/
|
748
749
|
public void setPrimary(boolean primary) { // ignore
|
749
750
|
this.primaryGraphics = primary;
|
@@ -768,15 +769,14 @@ public class PGraphics extends PImage implements PConstants {
|
|
768
769
|
|
769
770
|
|
770
771
|
/**
|
771
|
-
* The final step in setting up a renderer, set its size of this renderer.
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
*
|
778
|
-
*
|
779
|
-
* animation thread.
|
772
|
+
* The final step in setting up a renderer, set its size of this renderer.This was formerly handled by the constructor, but instead it's been broken
|
773
|
+
out so that setParent/setPrimary/setPath can be handled differently.Important: this is ignored by the Methods task because otherwise it will
|
774
|
+
override setSize() in PApplet/Applet/Component, which will 1) not call
|
775
|
+
super.setSize(), and 2) will cause the renderer to be resized from the
|
776
|
+
event thread (EDT), causing a nasty crash as it collides with the
|
777
|
+
animation thread.
|
778
|
+
* @param w
|
779
|
+
* @param h
|
780
780
|
*/
|
781
781
|
public void setSize(int w, int h) { // ignore
|
782
782
|
width = w;
|
@@ -845,10 +845,11 @@ public class PGraphics extends PImage implements PConstants {
|
|
845
845
|
|
846
846
|
|
847
847
|
/**
|
848
|
-
* Get cache storage data for the specified renderer.
|
849
|
-
|
850
|
-
|
851
|
-
|
848
|
+
* Get cache storage data for the specified renderer.Because each renderer
|
849
|
+
will cache data in different formats, it's necessary to store cache data
|
850
|
+
keyed by the renderer object. Otherwise, attempting to draw the same
|
851
|
+
image to both a PGraphicsJava2D and a PGraphicsOpenGL will cause errors.
|
852
|
+
* @param image
|
852
853
|
* @return metadata stored for the specified renderer
|
853
854
|
*/
|
854
855
|
public Object getCache(PImage image) { // ignore
|
@@ -895,7 +896,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
895
896
|
* Sets the default properties for a PGraphics object. It should be called
|
896
897
|
* before anything is drawn into the object.
|
897
898
|
*
|
898
|
-
*
|
899
|
+
* ( end auto-generated )
|
899
900
|
* <h3>Advanced</h3>
|
900
901
|
* When creating your own PGraphics, you should call this before
|
901
902
|
* drawing anything.
|
@@ -912,7 +913,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
912
913
|
*
|
913
914
|
* Finalizes the rendering of a PGraphics object so that it can be shown on screen.
|
914
915
|
*
|
915
|
-
*
|
916
|
+
* ( end auto-generated )
|
916
917
|
* <h3>Advanced</h3>
|
917
918
|
*
|
918
919
|
* When creating your own PGraphics, you should call this when
|
@@ -1156,7 +1157,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1156
1157
|
* prevents the double negatives, and also reinforces which hints can be
|
1157
1158
|
* enabled or disabled.
|
1158
1159
|
*
|
1159
|
-
*
|
1160
|
+
* ( end auto-generated )
|
1160
1161
|
*
|
1161
1162
|
* @webref rendering
|
1162
1163
|
* @param which name of the hint to be enabled or disabled
|
@@ -1224,7 +1225,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1224
1225
|
* <b>strokeJoin()</b> cannot be changed while inside a
|
1225
1226
|
* <b>beginShape()</b>/<b>endShape()</b> block with any renderer.
|
1226
1227
|
*
|
1227
|
-
*
|
1228
|
+
* ( end auto-generated )
|
1228
1229
|
* @webref shape:vertex
|
1229
1230
|
* @param kind Either POINTS, LINES, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, or QUAD_STRIP
|
1230
1231
|
* @see PShape
|
@@ -1239,8 +1240,8 @@ public class PGraphics extends PImage implements PConstants {
|
|
1239
1240
|
|
1240
1241
|
|
1241
1242
|
/**
|
1242
|
-
* Sets whether the upcoming vertex is part of an edge.
|
1243
|
-
*
|
1243
|
+
* Sets whether the upcoming vertex is part of an edge.Equivalent to glEdgeFlag(), for people familiar with OpenGL.
|
1244
|
+
* @param edge
|
1244
1245
|
*/
|
1245
1246
|
public void edge(boolean edge) {
|
1246
1247
|
this.edge = edge;
|
@@ -1257,7 +1258,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1257
1258
|
* imperfect, this is a better option when you want more control. This
|
1258
1259
|
* function is identical to glNormal3f() in OpenGL.
|
1259
1260
|
*
|
1260
|
-
*
|
1261
|
+
* ( end auto-generated )
|
1261
1262
|
* @webref lights_camera:lights
|
1262
1263
|
* @param nx x direction
|
1263
1264
|
* @param ny y direction
|
@@ -1326,7 +1327,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1326
1327
|
* the points (0,0) (0,100) (100,200) (0,200). The same mapping in
|
1327
1328
|
* NORMAL_SPACE is (0,0) (0,1) (1,1) (0,1).
|
1328
1329
|
*
|
1329
|
-
*
|
1330
|
+
* ( end auto-generated )
|
1330
1331
|
* @webref image:textures
|
1331
1332
|
* @param mode either IMAGE or NORMAL
|
1332
1333
|
* @see PGraphics#texture(PImage)
|
@@ -1366,7 +1367,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1366
1367
|
* When textures are in use, the fill color is ignored. Instead, use tint()
|
1367
1368
|
* to specify the color of the texture as it is applied to the shape.
|
1368
1369
|
*
|
1369
|
-
*
|
1370
|
+
* ( end auto-generated )
|
1370
1371
|
* @webref image:textures
|
1371
1372
|
* @param image reference to a PImage object
|
1372
1373
|
* @see PGraphics#textureMode(int)
|
@@ -1621,7 +1622,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1621
1622
|
* <b>v</b> are specified in relation to the image's size in pixels, but
|
1622
1623
|
* this relation can be changed with <b>textureMode()</b>.
|
1623
1624
|
*
|
1624
|
-
*
|
1625
|
+
* ( end auto-generated )
|
1625
1626
|
* @webref shape:vertex
|
1626
1627
|
* @param x x-coordinate of the vertex
|
1627
1628
|
* @param y y-coordinate of the vertex
|
@@ -1651,18 +1652,18 @@ public class PGraphics extends PImage implements PConstants {
|
|
1651
1652
|
|
1652
1653
|
|
1653
1654
|
/**
|
1654
|
-
* Set (U, V) coords for the next vertex in the current shape.
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
* param of and overloaded vertex().
|
1659
|
-
*
|
1655
|
+
* Set (U, V) coords for the next vertex in the current shape.This is ugly as its own function, and will (almost?) always be
|
1656
|
+
coincident with a call to vertex.As of beta, this was moved to
|
1657
|
+
the protected method you see here, and called from an optional
|
1658
|
+
param of and overloaded vertex().
|
1660
1659
|
* The parameters depend on the current textureMode. When using
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1660
|
+
textureMode(IMAGE), the coordinates will be relative to the size
|
1661
|
+
of the image texture, when used with textureMode(NORMAL),
|
1662
|
+
they'll be in the range 0..1.
|
1663
|
+
|
1664
|
+
Used by both PGraphics2D (for images) and PGraphics3D.
|
1665
|
+
* @param u
|
1666
|
+
* @param v
|
1666
1667
|
*/
|
1667
1668
|
protected void vertexTexture(float u, float v) {
|
1668
1669
|
if (textureImage == null) {
|
@@ -1722,7 +1723,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1722
1723
|
* as the value for the MODE parameter to close the shape (to connect the
|
1723
1724
|
* beginning and the end).
|
1724
1725
|
*
|
1725
|
-
*
|
1726
|
+
* ( end auto-generated )
|
1726
1727
|
* @webref shape:vertex
|
1727
1728
|
* @param mode use CLOSE to close the shape
|
1728
1729
|
* @see PShape
|
@@ -1739,6 +1740,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1739
1740
|
|
1740
1741
|
|
1741
1742
|
/**
|
1743
|
+
* @return
|
1742
1744
|
* @webref shape
|
1743
1745
|
* @param filename name of file to load, can be .svg or .obj
|
1744
1746
|
* @see PShape
|
@@ -1890,7 +1892,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1890
1892
|
*
|
1891
1893
|
* This is a new reference entry for Processing 2.0. It will be updated shortly.
|
1892
1894
|
*
|
1893
|
-
*
|
1895
|
+
* ( end auto-generated )
|
1894
1896
|
*
|
1895
1897
|
* @webref rendering:shaders
|
1896
1898
|
* @param fragFilename name of fragment shader file
|
@@ -1915,7 +1917,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1915
1917
|
*
|
1916
1918
|
* This is a new reference entry for Processing 2.0. It will be updated shortly.
|
1917
1919
|
*
|
1918
|
-
*
|
1920
|
+
* ( end auto-generated )
|
1919
1921
|
*
|
1920
1922
|
* @webref rendering:shaders
|
1921
1923
|
* @param shader name of shader file
|
@@ -1938,7 +1940,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1938
1940
|
*
|
1939
1941
|
* This is a new reference entry for Processing 2.0. It will be updated shortly.
|
1940
1942
|
*
|
1941
|
-
*
|
1943
|
+
* ( end auto-generated )
|
1942
1944
|
*
|
1943
1945
|
* @webref rendering:shaders
|
1944
1946
|
*/
|
@@ -1975,7 +1977,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
1975
1977
|
* by the parameters. The boundaries are drawn based on the state
|
1976
1978
|
* of the <b>imageMode()</b> fuction, either CORNER, CORNERS, or CENTER.
|
1977
1979
|
*
|
1978
|
-
*
|
1980
|
+
* ( end auto-generated )
|
1979
1981
|
*
|
1980
1982
|
* @webref rendering
|
1981
1983
|
* @param a x-coordinate of the rectangle, by default
|
@@ -1984,35 +1986,32 @@ public class PGraphics extends PImage implements PConstants {
|
|
1984
1986
|
* @param d height of the rectangle, by default
|
1985
1987
|
*/
|
1986
1988
|
public void clip(float a, float b, float c, float d) {
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
1989
|
+
switch (imageMode) {
|
1990
|
+
case CORNER:
|
1991
|
+
if (c < 0) { // reset a negative width
|
1992
|
+
a += c; c = -c;
|
1993
|
+
} if (d < 0) { // reset a negative height
|
1994
|
+
b += d; d = -d;
|
1995
|
+
} clipImpl(a, b, a + c, b + d);
|
1996
|
+
break;
|
1997
|
+
case CORNERS:
|
1998
|
+
if (c < a) { // reverse because x2 < x1
|
1999
|
+
float temp = a; a = c; c = temp;
|
2000
|
+
} if (d < b) { // reverse because y2 < y1
|
2001
|
+
float temp = b; b = d; d = temp;
|
2002
|
+
} clipImpl(a, b, c, d);
|
2003
|
+
break;
|
2004
|
+
case CENTER:
|
2005
|
+
// c and d are width/height
|
2006
|
+
if (c < 0) c = -c;
|
2007
|
+
if (d < 0) d = -d;
|
2008
|
+
float x1 = a - c/2;
|
2009
|
+
float y1 = b - d/2;
|
2010
|
+
clipImpl(x1, y1, x1 + c, y1 + d);
|
2011
|
+
break;
|
2012
|
+
default:
|
2013
|
+
break;
|
2003
2014
|
}
|
2004
|
-
|
2005
|
-
clipImpl(a, b, c, d);
|
2006
|
-
|
2007
|
-
} else if (imageMode == CENTER) {
|
2008
|
-
// c and d are width/height
|
2009
|
-
if (c < 0) c = -c;
|
2010
|
-
if (d < 0) d = -d;
|
2011
|
-
float x1 = a - c/2;
|
2012
|
-
float y1 = b - d/2;
|
2013
|
-
|
2014
|
-
clipImpl(x1, y1, x1 + c, y1 + d);
|
2015
|
-
}
|
2016
2015
|
}
|
2017
2016
|
|
2018
2017
|
|
@@ -2026,7 +2025,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2026
2025
|
*
|
2027
2026
|
* Disables the clipping previously started by the <b>clip()</b> function.
|
2028
2027
|
*
|
2029
|
-
*
|
2028
|
+
* ( end auto-generated )
|
2030
2029
|
*
|
2031
2030
|
* @webref rendering
|
2032
2031
|
*/
|
@@ -2045,7 +2044,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2045
2044
|
*
|
2046
2045
|
* This is a new reference entry for Processing 2.0. It will be updated shortly.
|
2047
2046
|
*
|
2048
|
-
*
|
2047
|
+
* ( end auto-generated )
|
2049
2048
|
*
|
2050
2049
|
* @webref rendering
|
2051
2050
|
* @param mode the blending mode to use
|
@@ -2127,7 +2126,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2127
2126
|
* 3D version requires rendering with P3D (see the Environment reference
|
2128
2127
|
* for more information).
|
2129
2128
|
*
|
2130
|
-
*
|
2129
|
+
* ( end auto-generated )
|
2131
2130
|
* @webref shape:vertex
|
2132
2131
|
* @param x2 the x-coordinate of the 1st control point
|
2133
2132
|
* @param y2 the y-coordinate of the 1st control point
|
@@ -2260,7 +2259,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2260
2259
|
* version requires rendering with P3D (see the Environment reference for
|
2261
2260
|
* more information).
|
2262
2261
|
*
|
2263
|
-
*
|
2262
|
+
* ( end auto-generated )
|
2264
2263
|
*
|
2265
2264
|
* @webref shape:vertex
|
2266
2265
|
* @param x the x-coordinate of the vertex
|
@@ -2411,7 +2410,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2411
2410
|
* requires the P3D parameter in combination with <b>size()</b> as shown in
|
2412
2411
|
* the above example.
|
2413
2412
|
*
|
2414
|
-
*
|
2413
|
+
* ( end auto-generated )
|
2415
2414
|
*
|
2416
2415
|
* @webref shape:2d_primitives
|
2417
2416
|
* @param x x-coordinate of the point
|
@@ -2446,7 +2445,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2446
2445
|
* Drawing this shape in 3D with the <b>z</b> parameter requires the P3D
|
2447
2446
|
* parameter in combination with <b>size()</b> as shown in the above example.
|
2448
2447
|
*
|
2449
|
-
*
|
2448
|
+
* ( end auto-generated )
|
2450
2449
|
* @webref shape:2d_primitives
|
2451
2450
|
* @param x1 x-coordinate of the first point
|
2452
2451
|
* @param y1 y-coordinate of the first point
|
@@ -2483,7 +2482,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2483
2482
|
* arguments specify the first point, the middle two arguments specify the
|
2484
2483
|
* second point, and the last two arguments specify the third point.
|
2485
2484
|
*
|
2486
|
-
*
|
2485
|
+
* ( end auto-generated )
|
2487
2486
|
* @webref shape:2d_primitives
|
2488
2487
|
* @param x1 x-coordinate of the first point
|
2489
2488
|
* @param y1 y-coordinate of the first point
|
@@ -2512,7 +2511,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2512
2511
|
* vertex and the subsequent pairs should proceed clockwise or
|
2513
2512
|
* counter-clockwise around the defined shape.
|
2514
2513
|
*
|
2515
|
-
*
|
2514
|
+
* ( end auto-generated )
|
2516
2515
|
* @webref shape:2d_primitives
|
2517
2516
|
* @param x1 x-coordinate of the first corner
|
2518
2517
|
* @param y1 y-coordinate of the first corner
|
@@ -2558,7 +2557,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2558
2557
|
* sensitive language. Note: In version 125, the mode named CENTER_RADIUS
|
2559
2558
|
* was shortened to RADIUS.
|
2560
2559
|
*
|
2561
|
-
*
|
2560
|
+
* ( end auto-generated )
|
2562
2561
|
* @webref shape:attributes
|
2563
2562
|
* @param mode either CORNER, CORNERS, CENTER, or RADIUS
|
2564
2563
|
* @see PGraphics#rect(float, float, float, float)
|
@@ -2577,7 +2576,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2577
2576
|
* fourth sets the height. These parameters may be changed with the
|
2578
2577
|
* <b>rectMode()</b> function.
|
2579
2578
|
*
|
2580
|
-
*
|
2579
|
+
* ( end auto-generated )
|
2581
2580
|
*
|
2582
2581
|
* @webref shape:2d_primitives
|
2583
2582
|
* @param a x-coordinate of the rectangle by default
|
@@ -2743,7 +2742,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2743
2742
|
* these parameters are interpreted, however, may be changed with the
|
2744
2743
|
* <b>rectMode()</b> function.
|
2745
2744
|
*
|
2746
|
-
*
|
2745
|
+
* ( end auto-generated )
|
2747
2746
|
*
|
2748
2747
|
* @webref shape:2d_primitives
|
2749
2748
|
* @param x x-coordinate of the rectangle by default
|
@@ -2777,7 +2776,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2777
2776
|
* ellipse's bounding box. The parameter must be written in ALL CAPS
|
2778
2777
|
* because Processing is a case-sensitive language.
|
2779
2778
|
*
|
2780
|
-
*
|
2779
|
+
* ( end auto-generated )
|
2781
2780
|
* @webref shape:attributes
|
2782
2781
|
* @param mode either CENTER, RADIUS, CORNER, or CORNERS
|
2783
2782
|
* @see PApplet#ellipse(float, float, float, float)
|
@@ -2796,7 +2795,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2796
2795
|
* the location, the third sets the width, and the fourth sets the height.
|
2797
2796
|
* The origin may be changed with the <b>ellipseMode()</b> function.
|
2798
2797
|
*
|
2799
|
-
*
|
2798
|
+
* ( end auto-generated )
|
2800
2799
|
* @webref shape:2d_primitives
|
2801
2800
|
* @param a x-coordinate of the ellipse
|
2802
2801
|
* @param b y-coordinate of the ellipse
|
@@ -2811,24 +2810,24 @@ public class PGraphics extends PImage implements PConstants {
|
|
2811
2810
|
float w = c;
|
2812
2811
|
float h = d;
|
2813
2812
|
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2813
|
+
switch (ellipseMode) {
|
2814
|
+
case CORNERS:
|
2815
|
+
w = c - a;
|
2816
|
+
h = d - b;
|
2817
|
+
break;
|
2818
|
+
case RADIUS:
|
2819
|
+
x = a - c;
|
2820
|
+
y = b - d;
|
2821
|
+
w = c * 2;
|
2822
|
+
h = d * 2;
|
2823
|
+
break;
|
2824
|
+
case DIAMETER:
|
2825
|
+
x = a - c/2f;
|
2826
|
+
y = b - d/2f;
|
2827
|
+
break;
|
2828
|
+
default:
|
2829
|
+
break;
|
2830
|
+
}
|
2832
2831
|
|
2833
2832
|
if (w < 0) { // undo negative width
|
2834
2833
|
x += w;
|
@@ -2857,7 +2856,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2857
2856
|
* with the <b>ellipseMode()</b> function. The <b>start</b> and <b>stop</b>
|
2858
2857
|
* parameters specify the angles at which to draw the arc.
|
2859
2858
|
*
|
2860
|
-
*
|
2859
|
+
* ( end auto-generated )
|
2861
2860
|
* @webref shape:2d_primitives
|
2862
2861
|
* @param a x-coordinate of the arc's ellipse
|
2863
2862
|
* @param b y-coordinate of the arc's ellipse
|
@@ -2885,24 +2884,24 @@ public class PGraphics extends PImage implements PConstants {
|
|
2885
2884
|
float w = c;
|
2886
2885
|
float h = d;
|
2887
2886
|
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
2891
|
-
|
2892
|
-
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
2896
|
-
|
2897
|
-
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
|
2887
|
+
switch (ellipseMode) {
|
2888
|
+
case CORNERS:
|
2889
|
+
w = c - a;
|
2890
|
+
h = d - b;
|
2891
|
+
break;
|
2892
|
+
case RADIUS:
|
2893
|
+
x = a - c;
|
2894
|
+
y = b - d;
|
2895
|
+
w = c * 2;
|
2896
|
+
h = d * 2;
|
2897
|
+
break;
|
2898
|
+
case CENTER:
|
2899
|
+
x = a - c/2f;
|
2900
|
+
y = b - d/2f;
|
2901
|
+
break;
|
2902
|
+
default:
|
2903
|
+
break;
|
2904
|
+
}
|
2906
2905
|
|
2907
2906
|
// make sure the loop will exit before starting while
|
2908
2907
|
if (!Float.isInfinite(start) && !Float.isInfinite(stop)) {
|
@@ -2948,7 +2947,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2948
2947
|
* and height. The origin may be changed with the <b>ellipseMode()</b>
|
2949
2948
|
* function.
|
2950
2949
|
*
|
2951
|
-
*
|
2950
|
+
* ( end auto-generated )
|
2952
2951
|
* @webref shape:2d_primitives
|
2953
2952
|
* @param x x-coordinate of the ellipse
|
2954
2953
|
* @param y y-coordinate of the ellipse
|
@@ -2971,7 +2970,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
2971
2970
|
* A box is an extruded rectangle. A box with equal dimension on all sides
|
2972
2971
|
* is a cube.
|
2973
2972
|
*
|
2974
|
-
*
|
2973
|
+
* ( end auto-generated )
|
2975
2974
|
*
|
2976
2975
|
* @webref shape:3d_primitives
|
2977
2976
|
* @param size dimension of the box in all dimensions (creates a cube)
|
@@ -3064,7 +3063,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3064
3063
|
* and vertical resolution independently, use the version of the functions
|
3065
3064
|
* with two parameters.
|
3066
3065
|
*
|
3067
|
-
*
|
3066
|
+
* ( end auto-generated )
|
3068
3067
|
*
|
3069
3068
|
* <h3>Advanced</h3>
|
3070
3069
|
* Code for sphereDetail() submitted by toxi [031031].
|
@@ -3130,7 +3129,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3130
3129
|
*
|
3131
3130
|
* A sphere is a hollow ball made from tessellated triangles.
|
3132
3131
|
*
|
3133
|
-
*
|
3132
|
+
* ( end auto-generated )
|
3134
3133
|
*
|
3135
3134
|
* <h3>Advanced</h3>
|
3136
3135
|
* <P>
|
@@ -3237,7 +3236,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3237
3236
|
* second time with the y coordinates to get the location of a bezier curve
|
3238
3237
|
* at t.
|
3239
3238
|
*
|
3240
|
-
*
|
3239
|
+
* ( end auto-generated )
|
3241
3240
|
*
|
3242
3241
|
* <h3>Advanced</h3>
|
3243
3242
|
* For instance, to convert the following example:<PRE>
|
@@ -3281,7 +3280,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3281
3280
|
* definition of <a href="http://en.wikipedia.org/wiki/Tangent"
|
3282
3281
|
* target="new"><em>tangent</em> on Wikipedia</a>.
|
3283
3282
|
*
|
3284
|
-
*
|
3283
|
+
* ( end auto-generated )
|
3285
3284
|
*
|
3286
3285
|
* <h3>Advanced</h3>
|
3287
3286
|
* Code submitted by Dave Bollinger (davol) for release 0136.
|
@@ -3324,7 +3323,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3324
3323
|
* This function is only useful when using the P3D renderer as the default
|
3325
3324
|
* P2D renderer does not use this information.
|
3326
3325
|
*
|
3327
|
-
*
|
3326
|
+
* ( end auto-generated )
|
3328
3327
|
*
|
3329
3328
|
* @webref shape:curves
|
3330
3329
|
* @param detail resolution of the curves
|
@@ -3372,7 +3371,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3372
3371
|
* Bezier. Using the 3D version requires rendering with P3D (see the
|
3373
3372
|
* Environment reference for more information).
|
3374
3373
|
*
|
3375
|
-
*
|
3374
|
+
* ( end auto-generated )
|
3376
3375
|
*
|
3377
3376
|
* <h3>Advanced</h3>
|
3378
3377
|
* Draw a cubic bezier curve. The first and last points are
|
@@ -3440,7 +3439,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3440
3439
|
* the points on the curve. This can be done once with the x coordinates and a
|
3441
3440
|
* second time with the y coordinates to get the location of a curve at t.
|
3442
3441
|
*
|
3443
|
-
*
|
3442
|
+
* ( end auto-generated )
|
3444
3443
|
*
|
3445
3444
|
* @webref shape:curves
|
3446
3445
|
* @param a coordinate of first control point
|
@@ -3474,7 +3473,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3474
3473
|
* of <em><a href="http://en.wikipedia.org/wiki/Tangent"
|
3475
3474
|
* target="new">tangent on Wikipedia</a></em>.
|
3476
3475
|
*
|
3477
|
-
*
|
3476
|
+
* ( end auto-generated )
|
3478
3477
|
*
|
3479
3478
|
* <h3>Advanced</h3>
|
3480
3479
|
* Code thanks to Dave Bollinger (Bug #715)
|
@@ -3512,7 +3511,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3512
3511
|
* This function is only useful when using the P3D renderer as the default
|
3513
3512
|
* P2D renderer does not use this information.
|
3514
3513
|
*
|
3515
|
-
*
|
3514
|
+
* ( end auto-generated )
|
3516
3515
|
*
|
3517
3516
|
* @webref shape:curves
|
3518
3517
|
* @param detail resolution of the curves
|
@@ -3537,7 +3536,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3537
3536
|
* within the range -5.0 and 5.0 will deform the curves but will leave them
|
3538
3537
|
* recognizable and as values increase in magnitude, they will continue to deform.
|
3539
3538
|
*
|
3540
|
-
*
|
3539
|
+
* ( end auto-generated )
|
3541
3540
|
*
|
3542
3541
|
* @webref shape:curves
|
3543
3542
|
* @param tightness amount of deformation from the original vertices
|
@@ -3616,7 +3615,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3616
3615
|
* implementation of Catmull-Rom splines. Using the 3D version requires
|
3617
3616
|
* rendering with P3D (see the Environment reference for more information).
|
3618
3617
|
*
|
3619
|
-
*
|
3618
|
+
* ( end auto-generated )
|
3620
3619
|
*
|
3621
3620
|
* <h3>Advanced</h3>
|
3622
3621
|
* As of revision 0070, this function no longer doubles the first
|
@@ -3763,7 +3762,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3763
3762
|
* The parameter to <b>imageMode()</b> must be written in ALL CAPS because
|
3764
3763
|
* Processing is a case-sensitive language.
|
3765
3764
|
*
|
3766
|
-
*
|
3765
|
+
* ( end auto-generated )
|
3767
3766
|
*
|
3768
3767
|
* @webref image:loading_displaying
|
3769
3768
|
* @param mode either CORNER, CORNERS, or CENTER
|
@@ -3803,7 +3802,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3803
3802
|
* The color of an image may be modified with the <b>tint()</b> function.
|
3804
3803
|
* This function will maintain transparency for GIF and PNG images.
|
3805
3804
|
*
|
3806
|
-
*
|
3805
|
+
* ( end auto-generated )
|
3807
3806
|
*
|
3808
3807
|
* <h3>Advanced</h3>
|
3809
3808
|
* Starting with release 0124, when using the default (JAVA2D) renderer,
|
@@ -3862,38 +3861,38 @@ public class PGraphics extends PImage implements PConstants {
|
|
3862
3861
|
// loadImageAsync() sets width and height to -1 when loading fails.
|
3863
3862
|
if (img.width == -1 || img.height == -1) return;
|
3864
3863
|
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
3875
|
-
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3887
|
-
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
3891
|
-
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3864
|
+
switch (imageMode) {
|
3865
|
+
case CORNER:
|
3866
|
+
if (c < 0) { // reset a negative width
|
3867
|
+
a += c; c = -c;
|
3868
|
+
} if (d < 0) { // reset a negative height
|
3869
|
+
b += d; d = -d;
|
3870
|
+
} imageImpl(img,
|
3871
|
+
a, b, a + c, b + d,
|
3872
|
+
u1, v1, u2, v2);
|
3873
|
+
break;
|
3874
|
+
case CORNERS:
|
3875
|
+
if (c < a) { // reverse because x2 < x1
|
3876
|
+
float temp = a; a = c; c = temp;
|
3877
|
+
} if (d < b) { // reverse because y2 < y1
|
3878
|
+
float temp = b; b = d; d = temp;
|
3879
|
+
} imageImpl(img,
|
3880
|
+
a, b, c, d,
|
3881
|
+
u1, v1, u2, v2);
|
3882
|
+
break;
|
3883
|
+
case CENTER:
|
3884
|
+
// c and d are width/height
|
3885
|
+
if (c < 0) c = -c;
|
3886
|
+
if (d < 0) d = -d;
|
3887
|
+
float x1 = a - c/2;
|
3888
|
+
float y1 = b - d/2;
|
3889
|
+
imageImpl(img,
|
3890
|
+
x1, y1, x1 + c, y1 + d,
|
3891
|
+
u1, v1, u2, v2);
|
3892
|
+
break;
|
3893
|
+
default:
|
3894
|
+
break;
|
3895
|
+
}
|
3897
3896
|
}
|
3898
3897
|
|
3899
3898
|
|
@@ -3978,7 +3977,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
3978
3977
|
* and height. The parameter must be written in "ALL CAPS" because
|
3979
3978
|
* Processing is a case sensitive language.
|
3980
3979
|
*
|
3981
|
-
*
|
3980
|
+
* ( end auto-generated )
|
3982
3981
|
*
|
3983
3982
|
* @webref shape:loading_displaying
|
3984
3983
|
* @param mode either CORNER, CORNERS, CENTER
|
@@ -4029,7 +4028,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4029
4028
|
* Note complex shapes may draw awkwardly with P3D. This renderer does not
|
4030
4029
|
* yet support shapes that have holes or complicated breaks.
|
4031
4030
|
*
|
4032
|
-
*
|
4031
|
+
* ( end auto-generated )
|
4033
4032
|
*
|
4034
4033
|
* @webref shape:loading_displaying
|
4035
4034
|
* @param shape the shape to display
|
@@ -4067,6 +4066,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4067
4066
|
|
4068
4067
|
|
4069
4068
|
/**
|
4069
|
+
* @param shape
|
4070
4070
|
* @param a x-coordinate of the shape
|
4071
4071
|
* @param b y-coordinate of the shape
|
4072
4072
|
* @param c width to display the shape
|
@@ -4078,27 +4078,26 @@ public class PGraphics extends PImage implements PConstants {
|
|
4078
4078
|
|
4079
4079
|
pushMatrix();
|
4080
4080
|
|
4081
|
-
|
4082
|
-
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4091
|
-
|
4092
|
-
|
4093
|
-
|
4094
|
-
|
4095
|
-
|
4096
|
-
|
4097
|
-
|
4098
|
-
|
4099
|
-
|
4100
|
-
|
4101
|
-
}
|
4081
|
+
switch (shapeMode) {
|
4082
|
+
case CENTER:
|
4083
|
+
// x and y are center, c and d refer to a diameter
|
4084
|
+
translate(a - c/2f, b - d/2f);
|
4085
|
+
scale(c / shape.getWidth(), d / shape.getHeight());
|
4086
|
+
break;
|
4087
|
+
case CORNER:
|
4088
|
+
translate(a, b);
|
4089
|
+
scale(c / shape.getWidth(), d / shape.getHeight());
|
4090
|
+
break;
|
4091
|
+
case CORNERS:
|
4092
|
+
// c and d are x2/y2, make them into width/height
|
4093
|
+
c -= a; d -= b;
|
4094
|
+
// then same as above
|
4095
|
+
translate(a, b);
|
4096
|
+
scale(c / shape.getWidth(), d / shape.getHeight());
|
4097
|
+
break;
|
4098
|
+
default:
|
4099
|
+
break;
|
4100
|
+
}
|
4102
4101
|
shape.draw(this);
|
4103
4102
|
|
4104
4103
|
popMatrix();
|
@@ -4198,7 +4197,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4198
4197
|
* <b>textAscent()</b> or <b>textDescent()</b> so that the hack works even
|
4199
4198
|
* if you change the size of the font.
|
4200
4199
|
*
|
4201
|
-
*
|
4200
|
+
* ( end auto-generated )
|
4202
4201
|
*
|
4203
4202
|
* @webref typography:attributes
|
4204
4203
|
* @param alignX horizontal alignment, either LEFT, CENTER, or RIGHT
|
@@ -4224,7 +4223,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4224
4223
|
* example, adding the <b>textAscent()</b> and <b>textDescent()</b> values
|
4225
4224
|
* will give you the total height of the line.
|
4226
4225
|
*
|
4227
|
-
*
|
4226
|
+
* ( end auto-generated )
|
4228
4227
|
*
|
4229
4228
|
* @webref typography:metrics
|
4230
4229
|
* @see PGraphics#textDescent()
|
@@ -4245,7 +4244,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4245
4244
|
* baseline. For example, adding the <b>textAscent()</b> and
|
4246
4245
|
* <b>textDescent()</b> values will give you the total height of the line.
|
4247
4246
|
*
|
4248
|
-
*
|
4247
|
+
* ( end auto-generated )
|
4249
4248
|
*
|
4250
4249
|
* @webref typography:metrics
|
4251
4250
|
* @see PGraphics#textAscent()
|
@@ -4266,18 +4265,18 @@ public class PGraphics extends PImage implements PConstants {
|
|
4266
4265
|
* used. This font will be used in all subsequent calls to the
|
4267
4266
|
* <b>text()</b> function. If no <b>size</b> parameter is input, the font
|
4268
4267
|
* will appear at its original size (the size it was created at with the
|
4269
|
-
* "Create Font..." tool) until it is changed with <b>textSize()</b>.
|
4270
|
-
* Because fonts are usually bitmaped, you should create fonts at
|
4268
|
+
* "Create Font..." tool) until it is changed with <b>textSize()</b>. <br
|
4269
|
+
* /> Because fonts are usually bitmaped, you should create fonts at
|
4271
4270
|
* the sizes that will be used most commonly. Using <b>textFont()</b>
|
4272
|
-
* without the size parameter will result in the cleanest-looking text.
|
4273
|
-
* With the default (JAVA2D) and PDF renderers, it's also possible
|
4271
|
+
* without the size parameter will result in the cleanest-looking text. <br
|
4272
|
+
* /> With the default (JAVA2D) and PDF renderers, it's also possible
|
4274
4273
|
* to enable the use of native fonts via the command
|
4275
4274
|
* <b>hint(ENABLE_NATIVE_FONTS)</b>. This will produce vector text in
|
4276
4275
|
* JAVA2D sketches and PDF output in cases where the vector data is
|
4277
4276
|
* available: when the font is still installed, or the font is created via
|
4278
4277
|
* the <b>createFont()</b> function (rather than the Create Font tool).
|
4279
4278
|
*
|
4280
|
-
*
|
4279
|
+
* ( end auto-generated )
|
4281
4280
|
*
|
4282
4281
|
* @webref typography:loading_displaying
|
4283
4282
|
* @param which any variable of the type PFont
|
@@ -4364,7 +4363,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4364
4363
|
* Sets the spacing between lines of text in units of pixels. This setting
|
4365
4364
|
* will be used in all subsequent calls to the <b>text()</b> function.
|
4366
4365
|
*
|
4367
|
-
*
|
4366
|
+
* ( end auto-generated )
|
4368
4367
|
*
|
4369
4368
|
* @webref typography:attributes
|
4370
4369
|
* @param leading the size in pixels for spacing between lines
|
@@ -4400,7 +4399,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4400
4399
|
* not currently optimized for <b>P3D</b>, so if recording shape data, use
|
4401
4400
|
* <b>textMode(MODEL)</b> until you're ready to capture the geometry with <b>beginRaw()</b>.
|
4402
4401
|
*
|
4403
|
-
*
|
4402
|
+
* ( end auto-generated )
|
4404
4403
|
*
|
4405
4404
|
* @webref typography:attributes
|
4406
4405
|
* @param mode either MODEL or SHAPE
|
@@ -4446,7 +4445,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4446
4445
|
* Sets the current font size. This size will be used in all subsequent
|
4447
4446
|
* calls to the <b>text()</b> function. Font size is measured in units of pixels.
|
4448
4447
|
*
|
4449
|
-
*
|
4448
|
+
* ( end auto-generated )
|
4450
4449
|
*
|
4451
4450
|
* @webref typography:attributes
|
4452
4451
|
* @param size the size of the letters in units of pixels
|
@@ -4510,7 +4509,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4510
4509
|
*
|
4511
4510
|
* Calculates and returns the width of any character or text string.
|
4512
4511
|
*
|
4513
|
-
*
|
4512
|
+
* ( end auto-generated )
|
4514
4513
|
*
|
4515
4514
|
* @webref typography:attributes
|
4516
4515
|
* @param str the String of characters to measure
|
@@ -4593,7 +4592,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
4593
4592
|
* inside a rectangle, the coordinates are interpreted based on the current
|
4594
4593
|
* <b>rectMode()</b> setting.
|
4595
4594
|
*
|
4596
|
-
*
|
4595
|
+
* ( end auto-generated )
|
4597
4596
|
*
|
4598
4597
|
* @webref typography:loading_displaying
|
4599
4598
|
* @param c the alphanumeric character to be displayed
|
@@ -4695,27 +4694,21 @@ public class PGraphics extends PImage implements PConstants {
|
|
4695
4694
|
high += textLeading;
|
4696
4695
|
}
|
4697
4696
|
}
|
4698
|
-
|
4699
|
-
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
y -= textDescent() + high;
|
4714
|
-
//} else if (textAlignY == BASELINE) {
|
4715
|
-
// do nothing
|
4716
|
-
break;
|
4717
|
-
default:
|
4718
|
-
break;
|
4697
|
+
if (textAlignY == CENTER) {
|
4698
|
+
// for a single line, this adds half the textAscent to y
|
4699
|
+
// for multiple lines, subtract half the additional height
|
4700
|
+
//y += (textAscent() - textDescent() - high)/2;
|
4701
|
+
y += (textAscent() - high)/2;
|
4702
|
+
} else if (textAlignY == TOP) {
|
4703
|
+
// for a single line, need to add textAscent to y
|
4704
|
+
// for multiple lines, no different
|
4705
|
+
y += textAscent();
|
4706
|
+
} else if (textAlignY == BOTTOM) {
|
4707
|
+
// for a single line, this is just offset by the descent
|
4708
|
+
// for multiple lines, subtract leading for each line
|
4709
|
+
y -= textDescent() + high;
|
4710
|
+
//} else if (textAlignY == BASELINE) {
|
4711
|
+
// do nothing
|
4719
4712
|
}
|
4720
4713
|
|
4721
4714
|
// int start = 0;
|
@@ -4866,33 +4859,27 @@ public class PGraphics extends PImage implements PConstants {
|
|
4866
4859
|
int lineFitCount = 1 + PApplet.floor((boxHeight - topAndBottom) / textLeading);
|
4867
4860
|
int lineCount = Math.min(textBreakCount, lineFitCount);
|
4868
4861
|
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
float y = y1 + textAscent();
|
4891
|
-
for (int i = 0; i < lineCount; i++) {
|
4892
|
-
textLineAlignImpl(textBuffer, textBreakStart[i], textBreakStop[i], lineX, y);
|
4893
|
-
y += textLeading;
|
4894
|
-
} break;
|
4895
|
-
}
|
4862
|
+
if (textAlignY == CENTER) {
|
4863
|
+
float lineHigh = textAscent() + textLeading * (lineCount - 1);
|
4864
|
+
float y = y1 + textAscent() + (boxHeight - lineHigh) / 2;
|
4865
|
+
for (int i = 0; i < lineCount; i++) {
|
4866
|
+
textLineAlignImpl(textBuffer, textBreakStart[i], textBreakStop[i], lineX, y);
|
4867
|
+
y += textLeading;
|
4868
|
+
}
|
4869
|
+
|
4870
|
+
} else if (textAlignY == BOTTOM) {
|
4871
|
+
float y = y2 - textDescent() - textLeading * (lineCount - 1);
|
4872
|
+
for (int i = 0; i < lineCount; i++) {
|
4873
|
+
textLineAlignImpl(textBuffer, textBreakStart[i], textBreakStop[i], lineX, y);
|
4874
|
+
y += textLeading;
|
4875
|
+
}
|
4876
|
+
|
4877
|
+
} else { // TOP or BASELINE just go to the default
|
4878
|
+
float y = y1 + textAscent();
|
4879
|
+
for (int i = 0; i < lineCount; i++) {
|
4880
|
+
textLineAlignImpl(textBuffer, textBreakStart[i], textBreakStop[i], lineX, y);
|
4881
|
+
y += textLeading;
|
4882
|
+
}
|
4896
4883
|
}
|
4897
4884
|
}
|
4898
4885
|
|
@@ -5215,7 +5202,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5215
5202
|
* transformations (rotate, scale, translate) and the drawing styles
|
5216
5203
|
* at the same time.
|
5217
5204
|
*
|
5218
|
-
*
|
5205
|
+
* ( end auto-generated )
|
5219
5206
|
*
|
5220
5207
|
* @webref structure
|
5221
5208
|
* @see PGraphics#pop()
|
@@ -5252,7 +5239,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5252
5239
|
* transformations (rotate, scale, translate) and the drawing styles
|
5253
5240
|
* at the same time.
|
5254
5241
|
*
|
5255
|
-
*
|
5242
|
+
* ( end auto-generated )
|
5256
5243
|
*
|
5257
5244
|
* @webref structure
|
5258
5245
|
* @see PGraphics#push()
|
@@ -5281,7 +5268,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5281
5268
|
* the other transformation functions and may be embedded to control the
|
5282
5269
|
* scope of the transformations.
|
5283
5270
|
*
|
5284
|
-
*
|
5271
|
+
* ( end auto-generated )
|
5285
5272
|
*
|
5286
5273
|
* @webref transform
|
5287
5274
|
* @see PGraphics#popMatrix()
|
@@ -5308,7 +5295,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5308
5295
|
* in conjuction with the other transformation functions and may be
|
5309
5296
|
* embedded to control the scope of the transformations.
|
5310
5297
|
*
|
5311
|
-
*
|
5298
|
+
* ( end auto-generated )
|
5312
5299
|
*
|
5313
5300
|
* @webref transform
|
5314
5301
|
* @see PGraphics#pushMatrix()
|
@@ -5340,7 +5327,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5340
5327
|
* transformation is reset when the loop begins again. This function can be
|
5341
5328
|
* further controlled by the <b>pushMatrix()</b> and <b>popMatrix()</b>.
|
5342
5329
|
*
|
5343
|
-
*
|
5330
|
+
* ( end auto-generated )
|
5344
5331
|
*
|
5345
5332
|
* @webref transform
|
5346
5333
|
* @param x left/right translation
|
@@ -5385,7 +5372,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5385
5372
|
* matrix by a rotation matrix. This function can be further controlled by
|
5386
5373
|
* the <b>pushMatrix()</b> and <b>popMatrix()</b>.
|
5387
5374
|
*
|
5388
|
-
*
|
5375
|
+
* ( end auto-generated )
|
5389
5376
|
*
|
5390
5377
|
* @webref transform
|
5391
5378
|
* @param angle angle of rotation specified in radians
|
@@ -5418,7 +5405,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5418
5405
|
* This function requires using P3D as a third parameter to <b>size()</b>
|
5419
5406
|
* as shown in the example above.
|
5420
5407
|
*
|
5421
|
-
*
|
5408
|
+
* ( end auto-generated )
|
5422
5409
|
*
|
5423
5410
|
* @webref transform
|
5424
5411
|
* @param angle angle of rotation specified in radians
|
@@ -5451,7 +5438,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5451
5438
|
* This function requires using P3D as a third parameter to <b>size()</b>
|
5452
5439
|
* as shown in the examples above.
|
5453
5440
|
*
|
5454
|
-
*
|
5441
|
+
* ( end auto-generated )
|
5455
5442
|
*
|
5456
5443
|
* @webref transform
|
5457
5444
|
* @param angle angle of rotation specified in radians
|
@@ -5484,7 +5471,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5484
5471
|
* This function requires using P3D as a third parameter to <b>size()</b>
|
5485
5472
|
* as shown in the examples above.
|
5486
5473
|
*
|
5487
|
-
*
|
5474
|
+
* ( end auto-generated )
|
5488
5475
|
*
|
5489
5476
|
* @webref transform
|
5490
5477
|
* @param angle angle of rotation specified in radians
|
@@ -5530,7 +5517,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5530
5517
|
* parameter for <b>size()</b> as shown in the example above. This function
|
5531
5518
|
* can be further controlled by <b>pushMatrix()</b> and <b>popMatrix()</b>.
|
5532
5519
|
*
|
5533
|
-
*
|
5520
|
+
* ( end auto-generated )
|
5534
5521
|
*
|
5535
5522
|
* @webref transform
|
5536
5523
|
* @param s percentage to scale the object
|
@@ -5588,7 +5575,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5588
5575
|
* matrix by a rotation matrix. This function can be further controlled by
|
5589
5576
|
* the <b>pushMatrix()</b> and <b>popMatrix()</b> functions.
|
5590
5577
|
*
|
5591
|
-
*
|
5578
|
+
* ( end auto-generated )
|
5592
5579
|
*
|
5593
5580
|
* @webref transform
|
5594
5581
|
* @param angle angle of shear specified in radians
|
@@ -5622,7 +5609,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5622
5609
|
* matrix by a rotation matrix. This function can be further controlled by
|
5623
5610
|
* the <b>pushMatrix()</b> and <b>popMatrix()</b> functions.
|
5624
5611
|
*
|
5625
|
-
*
|
5612
|
+
* ( end auto-generated )
|
5626
5613
|
*
|
5627
5614
|
* @webref transform
|
5628
5615
|
* @param angle angle of shear specified in radians
|
@@ -5649,7 +5636,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5649
5636
|
* Replaces the current matrix with the identity matrix. The equivalent
|
5650
5637
|
* function in OpenGL is glLoadIdentity().
|
5651
5638
|
*
|
5652
|
-
*
|
5639
|
+
* ( end auto-generated )
|
5653
5640
|
*
|
5654
5641
|
* @webref transform
|
5655
5642
|
* @see PGraphics#pushMatrix()
|
@@ -5669,7 +5656,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5669
5656
|
* inverse of the transform, so avoid it whenever possible. The equivalent
|
5670
5657
|
* function in OpenGL is glMultMatrix().
|
5671
5658
|
*
|
5672
|
-
*
|
5659
|
+
* ( end auto-generated )
|
5673
5660
|
*
|
5674
5661
|
* @webref transform
|
5675
5662
|
* @source
|
@@ -5800,7 +5787,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5800
5787
|
* Prints the current matrix to the Console (the text window at the bottom
|
5801
5788
|
* of Processing).
|
5802
5789
|
*
|
5803
|
-
*
|
5790
|
+
* ( end auto-generated )
|
5804
5791
|
*
|
5805
5792
|
* @webref transform
|
5806
5793
|
* @see PGraphics#pushMatrix()
|
@@ -5831,13 +5818,13 @@ public class PGraphics extends PImage implements PConstants {
|
|
5831
5818
|
* <b>draw()</b> (so that transformations happen afterwards), and the
|
5832
5819
|
* <b>camera()</b> function can be used after <b>beginCamera()</b> if you
|
5833
5820
|
* want to reset the camera before applying transformations.
|
5834
|
-
This function sets the matrix mode to the camera matrix so calls such
|
5821
|
+
* This function sets the matrix mode to the camera matrix so calls such
|
5835
5822
|
* as <b>translate()</b>, <b>rotate()</b>, applyMatrix() and resetMatrix()
|
5836
5823
|
* affect the camera. <b>beginCamera()</b> should always be used with a
|
5837
5824
|
* following <b>endCamera()</b> and pairs of <b>beginCamera()</b> and
|
5838
5825
|
* <b>endCamera()</b> cannot be nested.
|
5839
5826
|
*
|
5840
|
-
*
|
5827
|
+
* ( end auto-generated )
|
5841
5828
|
*
|
5842
5829
|
* @webref lights_camera:camera
|
5843
5830
|
* @see PGraphics#camera()
|
@@ -5858,7 +5845,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5858
5845
|
* advanced customization of the camera space. Please see the reference for
|
5859
5846
|
* <b>beginCamera()</b> for a description of how the functions are used.
|
5860
5847
|
*
|
5861
|
-
*
|
5848
|
+
* ( end auto-generated )
|
5862
5849
|
*
|
5863
5850
|
* @webref lights_camera:camera
|
5864
5851
|
* @see PGraphics#beginCamera()
|
@@ -5881,7 +5868,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5881
5868
|
* 180.0), width/2.0, height/2.0, 0, 0, 1, 0)</b>. This function is similar
|
5882
5869
|
* to <b>gluLookAt()</b> in OpenGL, but it first clears the current camera settings.
|
5883
5870
|
*
|
5884
|
-
*
|
5871
|
+
* ( end auto-generated )
|
5885
5872
|
*
|
5886
5873
|
* @webref lights_camera:camera
|
5887
5874
|
* @see PGraphics#beginCamera()
|
@@ -5915,7 +5902,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5915
5902
|
* Prints the current camera matrix to the Console (the text window at the
|
5916
5903
|
* bottom of Processing).
|
5917
5904
|
*
|
5918
|
-
*
|
5905
|
+
* ( end auto-generated )
|
5919
5906
|
* @webref lights_camera:camera
|
5920
5907
|
* @see PGraphics#camera(float, float, float, float, float, float, float, float, float)
|
5921
5908
|
*/
|
@@ -5941,7 +5928,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5941
5928
|
* parameters are given, the default is used: ortho(0, width, 0, height,
|
5942
5929
|
* -10, 10).
|
5943
5930
|
*
|
5944
|
-
*
|
5931
|
+
* ( end auto-generated )
|
5945
5932
|
*
|
5946
5933
|
* @webref lights_camera:camera
|
5947
5934
|
*/
|
@@ -5984,7 +5971,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
5984
5971
|
* default values are: perspective(PI/3.0, width/height, cameraZ/10.0,
|
5985
5972
|
* cameraZ*10.0) where cameraZ is ((height/2.0) / tan(PI*60.0/360.0));
|
5986
5973
|
*
|
5987
|
-
*
|
5974
|
+
* ( end auto-generated )
|
5988
5975
|
*
|
5989
5976
|
* @webref lights_camera:camera
|
5990
5977
|
*/
|
@@ -6009,7 +5996,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6009
5996
|
* glFrustum, except it wipes out the current perspective matrix rather
|
6010
5997
|
* than muliplying itself with it.
|
6011
5998
|
*
|
6012
|
-
*
|
5999
|
+
* ( end auto-generated )
|
6013
6000
|
*
|
6014
6001
|
* @webref lights_camera:camera
|
6015
6002
|
* @param left left coordinate of the clipping plane
|
@@ -6035,7 +6022,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6035
6022
|
* Prints the current projection matrix to the Console (the text window at
|
6036
6023
|
* the bottom of Processing).
|
6037
6024
|
*
|
6038
|
-
*
|
6025
|
+
* ( end auto-generated )
|
6039
6026
|
*
|
6040
6027
|
* @webref lights_camera:camera
|
6041
6028
|
* @see PGraphics#camera(float, float, float, float, float, float, float, float, float)
|
@@ -6057,7 +6044,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6057
6044
|
* Takes a three-dimensional X, Y, Z position and returns the X value for
|
6058
6045
|
* where it will appear on a (two-dimensional) screen.
|
6059
6046
|
*
|
6060
|
-
*
|
6047
|
+
* ( end auto-generated )
|
6061
6048
|
*
|
6062
6049
|
* @webref lights_camera:coordinates
|
6063
6050
|
* @param x 3D x-coordinate to be mapped
|
@@ -6077,7 +6064,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6077
6064
|
* Takes a three-dimensional X, Y, Z position and returns the Y value for
|
6078
6065
|
* where it will appear on a (two-dimensional) screen.
|
6079
6066
|
*
|
6080
|
-
*
|
6067
|
+
* ( end auto-generated )
|
6081
6068
|
*
|
6082
6069
|
* @webref lights_camera:coordinates
|
6083
6070
|
* @param x 3D x-coordinate to be mapped
|
@@ -6093,6 +6080,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6093
6080
|
|
6094
6081
|
/**
|
6095
6082
|
* @param z 3D z-coordinate to be mapped
|
6083
|
+
* @return
|
6096
6084
|
*/
|
6097
6085
|
public float screenX(float x, float y, float z) {
|
6098
6086
|
showMissingWarning("screenX");
|
@@ -6114,10 +6102,10 @@ public class PGraphics extends PImage implements PConstants {
|
|
6114
6102
|
* ( begin auto-generated from screenZ.xml )
|
6115
6103
|
*
|
6116
6104
|
* Takes a three-dimensional X, Y, Z position and returns the Z value for
|
6117
|
-
* where it will appear on a (two-dimensional) screen.
|
6105
|
+
* where it will appear on a (two-dimensional) screen.( end auto-generated )
|
6118
6106
|
*
|
6119
|
-
*
|
6120
6107
|
*
|
6108
|
+
* @return
|
6121
6109
|
* @webref lights_camera:coordinates
|
6122
6110
|
* @param x 3D x-coordinate to be mapped
|
6123
6111
|
* @param y 3D y-coordinate to be mapped
|
@@ -6134,21 +6122,20 @@ public class PGraphics extends PImage implements PConstants {
|
|
6134
6122
|
/**
|
6135
6123
|
* ( begin auto-generated from modelX.xml )
|
6136
6124
|
*
|
6137
|
-
* Returns the three-dimensional X, Y, Z position in model space.
|
6138
|
-
|
6139
|
-
|
6140
|
-
|
6141
|
-
|
6142
|
-
*
|
6143
|
-
* In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6125
|
+
* Returns the three-dimensional X, Y, Z position in model space.This
|
6126
|
+
returns the X value for a given coordinate based on the current set of
|
6127
|
+
transformations (scale, rotate, translate, etc.) The X value can be used
|
6128
|
+
to place an object in space relative to the location of the original
|
6129
|
+
point once the transformations are no longer in use. In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6144
6130
|
* <b>modelZ()</b> functions record the location of a box in space after
|
6145
6131
|
* being placed using a series of translate and rotate commands. After
|
6146
6132
|
* popMatrix() is called, those transformations no longer apply, but the
|
6147
6133
|
* (x, y, z) coordinate returned by the model functions is used to place
|
6148
6134
|
* another box in the same location.
|
6149
6135
|
*
|
6150
|
-
*
|
6136
|
+
* ( end auto-generated )
|
6151
6137
|
*
|
6138
|
+
* @return
|
6152
6139
|
* @webref lights_camera:coordinates
|
6153
6140
|
* @param x 3D x-coordinate to be mapped
|
6154
6141
|
* @param y 3D y-coordinate to be mapped
|
@@ -6165,21 +6152,20 @@ public class PGraphics extends PImage implements PConstants {
|
|
6165
6152
|
/**
|
6166
6153
|
* ( begin auto-generated from modelY.xml )
|
6167
6154
|
*
|
6168
|
-
* Returns the three-dimensional X, Y, Z position in model space.
|
6169
|
-
|
6170
|
-
|
6171
|
-
|
6172
|
-
|
6173
|
-
*
|
6174
|
-
* In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6155
|
+
* Returns the three-dimensional X, Y, Z position in model space.This
|
6156
|
+
returns the Y value for a given coordinate based on the current set of
|
6157
|
+
transformations (scale, rotate, translate, etc.) The Y value can be used
|
6158
|
+
to place an object in space relative to the location of the original
|
6159
|
+
point once the transformations are no longer in use. In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6175
6160
|
* <b>modelZ()</b> functions record the location of a box in space after
|
6176
6161
|
* being placed using a series of translate and rotate commands. After
|
6177
6162
|
* popMatrix() is called, those transformations no longer apply, but the
|
6178
6163
|
* (x, y, z) coordinate returned by the model functions is used to place
|
6179
6164
|
* another box in the same location.
|
6180
6165
|
*
|
6181
|
-
*
|
6166
|
+
* ( end auto-generated )
|
6182
6167
|
*
|
6168
|
+
* @return
|
6183
6169
|
* @webref lights_camera:coordinates
|
6184
6170
|
* @param x 3D x-coordinate to be mapped
|
6185
6171
|
* @param y 3D y-coordinate to be mapped
|
@@ -6196,21 +6182,20 @@ public class PGraphics extends PImage implements PConstants {
|
|
6196
6182
|
/**
|
6197
6183
|
* ( begin auto-generated from modelZ.xml )
|
6198
6184
|
*
|
6199
|
-
* Returns the three-dimensional X, Y, Z position in model space.
|
6200
|
-
|
6201
|
-
|
6202
|
-
|
6203
|
-
|
6204
|
-
*
|
6205
|
-
* In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6185
|
+
* Returns the three-dimensional X, Y, Z position in model space.This
|
6186
|
+
returns the Z value for a given coordinate based on the current set of
|
6187
|
+
transformations (scale, rotate, translate, etc.) The Z value can be used
|
6188
|
+
to place an object in space relative to the location of the original
|
6189
|
+
point once the transformations are no longer in use. In the example, the <b>modelX()</b>, <b>modelY()</b>, and
|
6206
6190
|
* <b>modelZ()</b> functions record the location of a box in space after
|
6207
6191
|
* being placed using a series of translate and rotate commands. After
|
6208
6192
|
* popMatrix() is called, those transformations no longer apply, but the
|
6209
6193
|
* (x, y, z) coordinate returned by the model functions is used to place
|
6210
6194
|
* another box in the same location.
|
6211
6195
|
*
|
6212
|
-
*
|
6196
|
+
* ( end auto-generated )
|
6213
6197
|
*
|
6198
|
+
* @return
|
6214
6199
|
* @webref lights_camera:coordinates
|
6215
6200
|
* @param x 3D x-coordinate to be mapped
|
6216
6201
|
* @param y 3D y-coordinate to be mapped
|
@@ -6247,7 +6232,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6247
6232
|
* textAlign(), textFont(), textMode(), textSize(), textLeading(),
|
6248
6233
|
* emissive(), specular(), shininess(), ambient()
|
6249
6234
|
*
|
6250
|
-
*
|
6235
|
+
* ( end auto-generated )
|
6251
6236
|
*
|
6252
6237
|
* @webref structure
|
6253
6238
|
* @see PGraphics#popStyle()
|
@@ -6274,7 +6259,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6274
6259
|
* <b>pushStyle()</b> and <b>popStyle()</b> functions can be embedded to
|
6275
6260
|
* provide more control (see the second example above for a demonstration.)
|
6276
6261
|
*
|
6277
|
-
*
|
6262
|
+
* ( end auto-generated )
|
6278
6263
|
*
|
6279
6264
|
* @webref structure
|
6280
6265
|
* @see PGraphics#pushStyle()
|
@@ -6442,7 +6427,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6442
6427
|
* operating system's OpenGL implementation. For instance, the thickness
|
6443
6428
|
* may not go higher than 10 pixels.
|
6444
6429
|
*
|
6445
|
-
*
|
6430
|
+
* ( end auto-generated )
|
6446
6431
|
*
|
6447
6432
|
* @webref shape:attributes
|
6448
6433
|
* @param weight the weight (in pixels) of the stroke
|
@@ -6467,7 +6452,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6467
6452
|
* Issue 123</a>). More information about the renderers can be found in the
|
6468
6453
|
* <b>size()</b> reference.
|
6469
6454
|
*
|
6470
|
-
*
|
6455
|
+
* ( end auto-generated )
|
6471
6456
|
*
|
6472
6457
|
* @webref shape:attributes
|
6473
6458
|
* @param join either MITER, BEVEL, ROUND
|
@@ -6491,7 +6476,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6491
6476
|
* Issue 123</a>). More information about the renderers can be found in the
|
6492
6477
|
* <b>size()</b> reference.
|
6493
6478
|
*
|
6494
|
-
*
|
6479
|
+
* ( end auto-generated )
|
6495
6480
|
*
|
6496
6481
|
* @webref shape:attributes
|
6497
6482
|
* @param cap either SQUARE, PROJECT, or ROUND
|
@@ -6517,7 +6502,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6517
6502
|
* Disables drawing the stroke (outline). If both <b>noStroke()</b> and
|
6518
6503
|
* <b>noFill()</b> are called, nothing will be drawn to the screen.
|
6519
6504
|
*
|
6520
|
-
*
|
6505
|
+
* ( end auto-generated )
|
6521
6506
|
*
|
6522
6507
|
* @webref color:setting
|
6523
6508
|
* @see PGraphics#stroke(int, float)
|
@@ -6549,7 +6534,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6549
6534
|
* current maximum value as specified by <b>colorMode()</b>. The default
|
6550
6535
|
* maximum value is 255.
|
6551
6536
|
*
|
6552
|
-
*
|
6537
|
+
* ( end auto-generated )
|
6553
6538
|
*
|
6554
6539
|
* @param rgb color value in hexadecimal notation
|
6555
6540
|
* @see PGraphics#noStroke()
|
@@ -6637,7 +6622,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6637
6622
|
* Removes the current fill value for displaying images and reverts to
|
6638
6623
|
* displaying images with their original hues.
|
6639
6624
|
*
|
6640
|
-
*
|
6625
|
+
* ( end auto-generated )
|
6641
6626
|
*
|
6642
6627
|
* @webref image:loading_displaying
|
6643
6628
|
* @usage web_application
|
@@ -6675,7 +6660,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6675
6660
|
* The <b>tint()</b> function is also used to control the coloring of
|
6676
6661
|
* textures in 3D.
|
6677
6662
|
*
|
6678
|
-
*
|
6663
|
+
* ( end auto-generated )
|
6679
6664
|
*
|
6680
6665
|
* @webref image:loading_displaying
|
6681
6666
|
* @usage web_application
|
@@ -6756,7 +6741,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6756
6741
|
* Disables filling geometry. If both <b>noStroke()</b> and <b>noFill()</b>
|
6757
6742
|
* are called, nothing will be drawn to the screen.
|
6758
6743
|
*
|
6759
|
-
*
|
6744
|
+
* ( end auto-generated )
|
6760
6745
|
*
|
6761
6746
|
* @webref color:setting
|
6762
6747
|
* @usage web_application
|
@@ -6792,7 +6777,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6792
6777
|
*
|
6793
6778
|
* To change the color of an image (or a texture), use tint().
|
6794
6779
|
*
|
6795
|
-
*
|
6780
|
+
* ( end auto-generated )
|
6796
6781
|
*
|
6797
6782
|
* @webref color:setting
|
6798
6783
|
* @usage web_application
|
@@ -6881,7 +6866,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6881
6866
|
* reflect. Used in combination with <b>emissive()</b>, <b>specular()</b>,
|
6882
6867
|
* and <b>shininess()</b> in setting the material properties of shapes.
|
6883
6868
|
*
|
6884
|
-
*
|
6869
|
+
* ( end auto-generated )
|
6885
6870
|
*
|
6886
6871
|
* @webref lights_camera:material_properties
|
6887
6872
|
* @usage web_application
|
@@ -6939,7 +6924,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6939
6924
|
* with <b>emissive()</b>, <b>ambient()</b>, and <b>shininess()</b> in
|
6940
6925
|
* setting the material properties of shapes.
|
6941
6926
|
*
|
6942
|
-
*
|
6927
|
+
* ( end auto-generated )
|
6943
6928
|
*
|
6944
6929
|
* @webref lights_camera:material_properties
|
6945
6930
|
* @usage web_application
|
@@ -6999,7 +6984,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
6999
6984
|
* with <b>ambient()</b>, <b>specular()</b>, and <b>emissive()</b> in
|
7000
6985
|
* setting the material properties of shapes.
|
7001
6986
|
*
|
7002
|
-
*
|
6987
|
+
* ( end auto-generated )
|
7003
6988
|
*
|
7004
6989
|
* @webref lights_camera:material_properties
|
7005
6990
|
* @usage web_application
|
@@ -7020,7 +7005,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7020
7005
|
* <b>specular()</b>, and <b>shininess()</b> in setting the material
|
7021
7006
|
* properties of shapes.
|
7022
7007
|
*
|
7023
|
-
*
|
7008
|
+
* ( end auto-generated )
|
7024
7009
|
*
|
7025
7010
|
* @webref lights_camera:material_properties
|
7026
7011
|
* @usage web_application
|
@@ -7090,7 +7075,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7090
7075
|
* looping program will cause them to only have an effect the first time
|
7091
7076
|
* through the loop.
|
7092
7077
|
*
|
7093
|
-
*
|
7078
|
+
* ( end auto-generated )
|
7094
7079
|
*
|
7095
7080
|
* @webref lights_camera:lights
|
7096
7081
|
* @usage web_application
|
@@ -7112,7 +7097,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7112
7097
|
* lighting so that 2D geometry (which does not require lighting) can be
|
7113
7098
|
* drawn after a set of lighted 3D geometry.
|
7114
7099
|
*
|
7115
|
-
*
|
7100
|
+
* ( end auto-generated )
|
7116
7101
|
*
|
7117
7102
|
* @webref lights_camera:lights
|
7118
7103
|
* @usage web_application
|
@@ -7134,7 +7119,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7134
7119
|
* have an effect the first time through the loop. The effect of the
|
7135
7120
|
* parameters is determined by the current color mode.
|
7136
7121
|
*
|
7137
|
-
*
|
7122
|
+
* ( end auto-generated )
|
7138
7123
|
*
|
7139
7124
|
* @webref lights_camera:lights
|
7140
7125
|
* @usage web_application
|
@@ -7175,7 +7160,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7175
7160
|
* direction the light is facing. For example, setting <b>ny</b> to -1 will
|
7176
7161
|
* cause the geometry to be lit from below (the light is facing directly upward).
|
7177
7162
|
*
|
7178
|
-
*
|
7163
|
+
* ( end auto-generated )
|
7179
7164
|
*
|
7180
7165
|
* @webref lights_camera:lights
|
7181
7166
|
* @usage web_application
|
@@ -7206,7 +7191,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7206
7191
|
* mode. The <b>x</b>, <b>y</b>, and <b>z</b> parameters set the position
|
7207
7192
|
* of the light.
|
7208
7193
|
*
|
7209
|
-
*
|
7194
|
+
* ( end auto-generated )
|
7210
7195
|
*
|
7211
7196
|
* @webref lights_camera:lights
|
7212
7197
|
* @usage web_application
|
@@ -7239,7 +7224,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7239
7224
|
* direction or light. The <b>angle</b> parameter affects angle of the
|
7240
7225
|
* spotlight cone.
|
7241
7226
|
*
|
7242
|
-
*
|
7227
|
+
* ( end auto-generated )
|
7243
7228
|
*
|
7244
7229
|
* @webref lights_camera:lights
|
7245
7230
|
* @usage web_application
|
@@ -7282,7 +7267,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7282
7267
|
* and falloff. You can think of it as a point light that doesn't care
|
7283
7268
|
* which direction a surface is facing.
|
7284
7269
|
*
|
7285
|
-
*
|
7270
|
+
* ( end auto-generated )
|
7286
7271
|
*
|
7287
7272
|
* @webref lights_camera:lights
|
7288
7273
|
* @usage web_application
|
@@ -7310,7 +7295,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7310
7295
|
* specular material qualities set through the <b>specular()</b> and
|
7311
7296
|
* <b>shininess()</b> functions.
|
7312
7297
|
*
|
7313
|
-
*
|
7298
|
+
* ( end auto-generated )
|
7314
7299
|
*
|
7315
7300
|
* @webref lights_camera:lights
|
7316
7301
|
* @usage web_application
|
@@ -7351,7 +7336,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7351
7336
|
* It is not possible to use transparency (alpha) in background colors with
|
7352
7337
|
* the main drawing surface, however they will work properly with <b>createGraphics()</b>.
|
7353
7338
|
*
|
7354
|
-
*
|
7339
|
+
* ( end auto-generated )
|
7355
7340
|
*
|
7356
7341
|
* <h3>Advanced</h3>
|
7357
7342
|
* <p>Clear the background with a color that includes an alpha value. This can
|
@@ -7571,7 +7556,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7571
7556
|
* are specified between 0 and 1. The limits for defining colors are
|
7572
7557
|
* altered by setting the parameters range1, range2, range3, and range 4.
|
7573
7558
|
*
|
7574
|
-
*
|
7559
|
+
* ( end auto-generated )
|
7575
7560
|
*
|
7576
7561
|
* @webref color:setting
|
7577
7562
|
* @usage web_application
|
@@ -7909,7 +7894,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7909
7894
|
*
|
7910
7895
|
* Extracts the alpha value from a color.
|
7911
7896
|
*
|
7912
|
-
*
|
7897
|
+
* ( end auto-generated )
|
7913
7898
|
* @webref color:creating_reading
|
7914
7899
|
* @usage web_application
|
7915
7900
|
* @param rgb any value of the color datatype
|
@@ -7936,11 +7921,11 @@ public class PGraphics extends PImage implements PConstants {
|
|
7936
7921
|
* is easy to use and undestand, but is slower than another technique. To
|
7937
7922
|
* achieve the same results when working in <b>colorMode(RGB, 255)</b>, but
|
7938
7923
|
* with greater speed, use the >> (right shift) operator with a bit
|
7939
|
-
* mask. For example, the following two lines of code are equivalent
|
7940
|
-
|
7924
|
+
* mask. For example, the following two lines of code are equivalent:<br
|
7925
|
+
* /><pre>float r1 = red(myColor);float r2 = myColor >> 16
|
7941
7926
|
* & 0xFF;</pre>
|
7942
7927
|
*
|
7943
|
-
*
|
7928
|
+
* ( end auto-generated )
|
7944
7929
|
*
|
7945
7930
|
* @webref color:creating_reading
|
7946
7931
|
* @usage web_application
|
@@ -7973,7 +7958,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
7973
7958
|
* are equivalent:<pre>float r1 = green(myColor);float r2 =
|
7974
7959
|
* myColor >> 8 & 0xFF;</pre>
|
7975
7960
|
*
|
7976
|
-
*
|
7961
|
+
* ( end auto-generated )
|
7977
7962
|
*
|
7978
7963
|
* @webref color:creating_reading
|
7979
7964
|
* @usage web_application
|
@@ -8006,7 +7991,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8006
7991
|
* equivalent:<pre>float r1 = blue(myColor);float r2 = myColor
|
8007
7992
|
* & 0xFF;</pre>
|
8008
7993
|
*
|
8009
|
-
*
|
7994
|
+
* ( end auto-generated )
|
8010
7995
|
*
|
8011
7996
|
* @webref color:creating_reading
|
8012
7997
|
* @usage web_application
|
@@ -8029,9 +8014,9 @@ public class PGraphics extends PImage implements PConstants {
|
|
8029
8014
|
/**
|
8030
8015
|
* ( begin auto-generated from hue.xml )
|
8031
8016
|
*
|
8032
|
-
* Extracts the hue value from a color.
|
8017
|
+
* Extracts the hue value from a color.( end auto-generated )
|
8033
8018
|
*
|
8034
|
-
*
|
8019
|
+
* @return
|
8035
8020
|
* @webref color:creating_reading
|
8036
8021
|
* @usage web_application
|
8037
8022
|
* @param rgb any value of the color datatype
|
@@ -8055,9 +8040,9 @@ public class PGraphics extends PImage implements PConstants {
|
|
8055
8040
|
/**
|
8056
8041
|
* ( begin auto-generated from saturation.xml )
|
8057
8042
|
*
|
8058
|
-
* Extracts the saturation value from a color.
|
8043
|
+
* Extracts the saturation value from a color.( end auto-generated )
|
8059
8044
|
*
|
8060
|
-
*
|
8045
|
+
* @return
|
8061
8046
|
* @webref color:creating_reading
|
8062
8047
|
* @usage web_application
|
8063
8048
|
* @param rgb any value of the color datatype
|
@@ -8081,10 +8066,10 @@ public class PGraphics extends PImage implements PConstants {
|
|
8081
8066
|
/**
|
8082
8067
|
* ( begin auto-generated from brightness.xml )
|
8083
8068
|
*
|
8084
|
-
* Extracts the brightness value from a color.
|
8069
|
+
* Extracts the brightness value from a color.( end auto-generated )
|
8085
8070
|
*
|
8086
|
-
*
|
8087
8071
|
*
|
8072
|
+
* @return
|
8088
8073
|
* @webref color:creating_reading
|
8089
8074
|
* @usage web_application
|
8090
8075
|
* @param rgb any value of the color datatype
|
@@ -8121,7 +8106,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8121
8106
|
* values where 0.0 equal to the first point, 0.1 is very near the first
|
8122
8107
|
* point, 0.5 is half-way in between, etc.
|
8123
8108
|
*
|
8124
|
-
*
|
8109
|
+
* ( end auto-generated )
|
8125
8110
|
*
|
8126
8111
|
* @webref color:creating_reading
|
8127
8112
|
* @usage web_application
|
@@ -8220,6 +8205,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8220
8205
|
|
8221
8206
|
/**
|
8222
8207
|
* Record individual lines and triangles by echoing them to another renderer.
|
8208
|
+
* @param rawGraphics
|
8223
8209
|
*/
|
8224
8210
|
public void beginRaw(PGraphics rawGraphics) { // ignore
|
8225
8211
|
this.raw = rawGraphics;
|
@@ -8277,6 +8263,8 @@ public class PGraphics extends PImage implements PConstants {
|
|
8277
8263
|
|
8278
8264
|
/**
|
8279
8265
|
* Version of showWarning() that takes a parsed String.
|
8266
|
+
* @param msg
|
8267
|
+
* @param args
|
8280
8268
|
*/
|
8281
8269
|
static public void showWarning(String msg, Object... args) { // ignore
|
8282
8270
|
showWarning(String.format(msg, args));
|
@@ -8308,6 +8296,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8308
8296
|
|
8309
8297
|
/**
|
8310
8298
|
* Display a warning that the specified method is simply unavailable.
|
8299
|
+
* @param method
|
8311
8300
|
*/
|
8312
8301
|
static public void showMethodWarning(String method) {
|
8313
8302
|
showWarning(method + "() is not available with this renderer.");
|
@@ -8316,8 +8305,9 @@ public class PGraphics extends PImage implements PConstants {
|
|
8316
8305
|
|
8317
8306
|
/**
|
8318
8307
|
* Error that a particular variation of a method is unavailable (even though
|
8319
|
-
* other variations are).
|
8320
|
-
|
8308
|
+
* other variations are).For instance, if vertex(x, y, u, v) is not
|
8309
|
+
available, but vertex(x, y) is just fine.
|
8310
|
+
* @param str
|
8321
8311
|
*/
|
8322
8312
|
static public void showVariationWarning(String str) {
|
8323
8313
|
showWarning(str + " is not available with this renderer.");
|
@@ -8328,6 +8318,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8328
8318
|
* Display a warning that the specified method is not implemented, meaning
|
8329
8319
|
* that it could be either a completely missing function, although other
|
8330
8320
|
* variations of it may still work properly.
|
8321
|
+
* @param method
|
8331
8322
|
*/
|
8332
8323
|
static public void showMissingWarning(String method) {
|
8333
8324
|
showWarning(method + "(), or this particular variation of it, " +
|
@@ -8336,9 +8327,10 @@ public class PGraphics extends PImage implements PConstants {
|
|
8336
8327
|
|
8337
8328
|
|
8338
8329
|
/**
|
8339
|
-
* Show an renderer-related exception that halts the program.
|
8340
|
-
|
8341
|
-
|
8330
|
+
* Show an renderer-related exception that halts the program.Currently just
|
8331
|
+
wraps the message as a RuntimeException and throws it, but might do
|
8332
|
+
something more specific might be used in the future.
|
8333
|
+
* @param msg
|
8342
8334
|
*/
|
8343
8335
|
static public void showException(String msg) { // ignore
|
8344
8336
|
throw new RuntimeException(msg);
|
@@ -8347,6 +8339,7 @@ public class PGraphics extends PImage implements PConstants {
|
|
8347
8339
|
|
8348
8340
|
/**
|
8349
8341
|
* Same as below, but defaults to a 12 point font, just as MacWrite intended.
|
8342
|
+
* @param method
|
8350
8343
|
*/
|
8351
8344
|
protected void defaultFontOrDeath(String method) {
|
8352
8345
|
defaultFontOrDeath(method, 12);
|
@@ -8357,6 +8350,8 @@ public class PGraphics extends PImage implements PConstants {
|
|
8357
8350
|
* First try to create a default font, but if that's not possible, throw
|
8358
8351
|
* an exception that halts the program because textFont() has not been used
|
8359
8352
|
* prior to the specified method.
|
8353
|
+
* @param method
|
8354
|
+
* @param size
|
8360
8355
|
*/
|
8361
8356
|
protected void defaultFontOrDeath(String method, float size) {
|
8362
8357
|
if (parent != null) {
|