propane 3.6.0-java → 3.10.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/extensions.xml +1 -1
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +5 -1
  5. data/README.md +6 -13
  6. data/Rakefile +7 -6
  7. data/lib/java/japplemenubar/JAppleMenuBar.java +88 -0
  8. data/lib/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
  9. data/lib/java/monkstone/ColorUtil.java +127 -0
  10. data/lib/java/monkstone/MathToolModule.java +287 -0
  11. data/lib/java/monkstone/PropaneLibrary.java +46 -0
  12. data/lib/java/monkstone/core/LibraryProxy.java +136 -0
  13. data/lib/java/monkstone/fastmath/DegLutTables.java +111 -0
  14. data/lib/java/monkstone/fastmath/Deglut.java +71 -0
  15. data/lib/java/monkstone/fastmath/package-info.java +6 -0
  16. data/lib/java/monkstone/filechooser/Chooser.java +39 -0
  17. data/lib/java/monkstone/noise/FastTerrain.java +874 -0
  18. data/lib/java/monkstone/noise/Noise.java +90 -0
  19. data/lib/java/monkstone/noise/NoiseGenerator.java +75 -0
  20. data/lib/java/monkstone/noise/NoiseMode.java +28 -0
  21. data/lib/java/monkstone/noise/OpenSimplex2F.java +881 -0
  22. data/lib/java/monkstone/noise/OpenSimplex2S.java +1106 -0
  23. data/lib/java/monkstone/noise/SmoothTerrain.java +1099 -0
  24. data/lib/java/monkstone/slider/CustomHorizontalSlider.java +164 -0
  25. data/lib/java/monkstone/slider/CustomVerticalSlider.java +178 -0
  26. data/lib/java/monkstone/slider/SimpleHorizontalSlider.java +145 -0
  27. data/lib/java/monkstone/slider/SimpleSlider.java +166 -0
  28. data/lib/java/monkstone/slider/SimpleVerticalSlider.java +157 -0
  29. data/lib/java/monkstone/slider/Slider.java +61 -0
  30. data/lib/java/monkstone/slider/SliderBar.java +245 -0
  31. data/lib/java/monkstone/slider/SliderGroup.java +56 -0
  32. data/lib/java/monkstone/slider/WheelHandler.java +35 -0
  33. data/lib/java/monkstone/vecmath/GfxRender.java +86 -0
  34. data/lib/java/monkstone/vecmath/JRender.java +56 -0
  35. data/lib/java/monkstone/vecmath/ShapeRender.java +87 -0
  36. data/lib/java/monkstone/vecmath/package-info.java +20 -0
  37. data/lib/java/monkstone/vecmath/vec2/Vec2.java +802 -0
  38. data/lib/java/monkstone/vecmath/vec2/package-info.java +6 -0
  39. data/lib/java/monkstone/vecmath/vec3/Vec3.java +727 -0
  40. data/lib/java/monkstone/vecmath/vec3/package-info.java +6 -0
  41. data/lib/java/monkstone/videoevent/CaptureEvent.java +27 -0
  42. data/lib/java/monkstone/videoevent/MovieEvent.java +32 -0
  43. data/lib/java/monkstone/videoevent/package-info.java +20 -0
  44. data/lib/java/processing/awt/PGraphicsJava2D.java +3040 -0
  45. data/lib/java/processing/awt/PImageAWT.java +377 -0
  46. data/lib/java/processing/awt/PShapeJava2D.java +387 -0
  47. data/lib/java/processing/awt/PSurfaceAWT.java +1581 -0
  48. data/lib/java/processing/awt/ShimAWT.java +581 -0
  49. data/lib/java/processing/core/PApplet.java +15156 -0
  50. data/lib/java/processing/core/PConstants.java +523 -0
  51. data/lib/java/processing/core/PFont.java +1126 -0
  52. data/lib/java/processing/core/PGraphics.java +8600 -0
  53. data/lib/java/processing/core/PImage.java +3377 -0
  54. data/lib/java/processing/core/PMatrix.java +208 -0
  55. data/lib/java/processing/core/PMatrix2D.java +562 -0
  56. data/lib/java/processing/core/PMatrix3D.java +890 -0
  57. data/lib/java/processing/core/PShape.java +3561 -0
  58. data/lib/java/processing/core/PShapeOBJ.java +483 -0
  59. data/lib/java/processing/core/PShapeSVG.java +2016 -0
  60. data/lib/java/processing/core/PStyle.java +63 -0
  61. data/lib/java/processing/core/PSurface.java +198 -0
  62. data/lib/java/processing/core/PSurfaceNone.java +431 -0
  63. data/lib/java/processing/core/PVector.java +1066 -0
  64. data/lib/java/processing/core/ThinkDifferent.java +115 -0
  65. data/lib/java/processing/data/DoubleDict.java +850 -0
  66. data/lib/java/processing/data/DoubleList.java +928 -0
  67. data/lib/java/processing/data/FloatDict.java +847 -0
  68. data/lib/java/processing/data/FloatList.java +936 -0
  69. data/lib/java/processing/data/IntDict.java +807 -0
  70. data/lib/java/processing/data/IntList.java +936 -0
  71. data/lib/java/processing/data/JSONArray.java +1260 -0
  72. data/lib/java/processing/data/JSONObject.java +2282 -0
  73. data/lib/java/processing/data/JSONTokener.java +435 -0
  74. data/lib/java/processing/data/LongDict.java +802 -0
  75. data/lib/java/processing/data/LongList.java +937 -0
  76. data/lib/java/processing/data/Sort.java +46 -0
  77. data/lib/java/processing/data/StringDict.java +613 -0
  78. data/lib/java/processing/data/StringList.java +800 -0
  79. data/lib/java/processing/data/Table.java +4936 -0
  80. data/lib/java/processing/data/TableRow.java +198 -0
  81. data/lib/java/processing/data/XML.java +1156 -0
  82. data/lib/java/processing/dxf/RawDXF.java +404 -0
  83. data/lib/java/processing/event/Event.java +125 -0
  84. data/lib/java/processing/event/KeyEvent.java +70 -0
  85. data/lib/java/processing/event/MouseEvent.java +114 -0
  86. data/lib/java/processing/event/TouchEvent.java +57 -0
  87. data/lib/java/processing/javafx/PGraphicsFX2D.java +32 -0
  88. data/lib/java/processing/javafx/PSurfaceFX.java +173 -0
  89. data/lib/java/processing/net/Client.java +744 -0
  90. data/lib/java/processing/net/Server.java +388 -0
  91. data/lib/java/processing/opengl/FontTexture.java +378 -0
  92. data/lib/java/processing/opengl/FrameBuffer.java +513 -0
  93. data/lib/java/processing/opengl/LinePath.java +627 -0
  94. data/lib/java/processing/opengl/LineStroker.java +681 -0
  95. data/lib/java/processing/opengl/PGL.java +3483 -0
  96. data/lib/java/processing/opengl/PGraphics2D.java +615 -0
  97. data/lib/java/processing/opengl/PGraphics3D.java +281 -0
  98. data/lib/java/processing/opengl/PGraphicsOpenGL.java +13753 -0
  99. data/lib/java/processing/opengl/PJOGL.java +2008 -0
  100. data/lib/java/processing/opengl/PShader.java +1484 -0
  101. data/lib/java/processing/opengl/PShapeOpenGL.java +5269 -0
  102. data/lib/java/processing/opengl/PSurfaceJOGL.java +1385 -0
  103. data/lib/java/processing/opengl/Texture.java +1696 -0
  104. data/lib/java/processing/opengl/VertexBuffer.java +88 -0
  105. data/lib/java/processing/opengl/cursors/arrow.png +0 -0
  106. data/lib/java/processing/opengl/cursors/cross.png +0 -0
  107. data/lib/java/processing/opengl/cursors/hand.png +0 -0
  108. data/lib/java/processing/opengl/cursors/license.txt +27 -0
  109. data/lib/java/processing/opengl/cursors/move.png +0 -0
  110. data/lib/java/processing/opengl/cursors/text.png +0 -0
  111. data/lib/java/processing/opengl/cursors/wait.png +0 -0
  112. data/lib/java/processing/opengl/shaders/ColorFrag.glsl +32 -0
  113. data/lib/java/processing/opengl/shaders/ColorVert.glsl +34 -0
  114. data/lib/java/processing/opengl/shaders/LightFrag.glsl +33 -0
  115. data/lib/java/processing/opengl/shaders/LightVert.glsl +151 -0
  116. data/lib/java/processing/opengl/shaders/LineFrag.glsl +32 -0
  117. data/lib/java/processing/opengl/shaders/LineVert.glsl +100 -0
  118. data/lib/java/processing/opengl/shaders/MaskFrag.glsl +40 -0
  119. data/lib/java/processing/opengl/shaders/PointFrag.glsl +32 -0
  120. data/lib/java/processing/opengl/shaders/PointVert.glsl +56 -0
  121. data/lib/java/processing/opengl/shaders/TexFrag.glsl +37 -0
  122. data/lib/java/processing/opengl/shaders/TexLightFrag.glsl +37 -0
  123. data/lib/java/processing/opengl/shaders/TexLightVert.glsl +157 -0
  124. data/lib/java/processing/opengl/shaders/TexVert.glsl +38 -0
  125. data/lib/java/processing/pdf/PGraphicsPDF.java +581 -0
  126. data/lib/java/processing/svg/PGraphicsSVG.java +378 -0
  127. data/lib/propane/app.rb +9 -10
  128. data/lib/propane/runner.rb +10 -12
  129. data/lib/propane/version.rb +1 -1
  130. data/library/pdf/pdf.rb +7 -0
  131. data/library/svg/svg.rb +7 -0
  132. data/mvnw +3 -3
  133. data/mvnw.cmd +2 -2
  134. data/pom.rb +30 -3
  135. data/pom.xml +54 -3
  136. data/propane.gemspec +7 -3
  137. data/src/main/java/monkstone/FastNoiseModuleJava.java +127 -0
  138. data/src/main/java/monkstone/MathToolModule.java +30 -30
  139. data/src/main/java/monkstone/PropaneLibrary.java +2 -0
  140. data/src/main/java/monkstone/SmoothNoiseModuleJava.java +127 -0
  141. data/src/main/java/monkstone/fastmath/DegLutTables.java +111 -0
  142. data/src/main/java/monkstone/fastmath/Deglut.java +6 -56
  143. data/src/main/java/monkstone/filechooser/Chooser.java +1 -1
  144. data/src/main/java/monkstone/noise/OpenSimplex2F.java +813 -0
  145. data/src/main/java/monkstone/noise/OpenSimplex2S.java +1138 -0
  146. data/src/main/java/monkstone/slider/WheelHandler.java +1 -1
  147. data/src/main/java/monkstone/vecmath/JRender.java +6 -6
  148. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +20 -19
  149. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +12 -12
  150. data/src/main/java/processing/awt/PGraphicsJava2D.java +11 -3
  151. data/src/main/java/processing/core/PApplet.java +13242 -13374
  152. data/src/main/java/processing/core/PConstants.java +155 -163
  153. data/src/main/java/processing/core/PGraphics.java +118 -111
  154. data/src/main/java/processing/opengl/PJOGL.java +6 -5
  155. data/src/main/java/processing/pdf/PGraphicsPDF.java +581 -0
  156. data/src/main/java/processing/svg/PGraphicsSVG.java +378 -0
  157. data/test/deglut_spec_test.rb +2 -2
  158. data/vendors/Rakefile +1 -1
  159. metadata +146 -17
  160. data/library/simplex_noise/simplex_noise.rb +0 -5
  161. data/src/main/java/monkstone/noise/SimplexNoise.java +0 -436
@@ -48,7 +48,7 @@ public interface PConstants {
48
48
 
49
49
  /*
50
50
  // List of renderers used inside PdePreprocessor
51
- static final StringList rendererList = new StringList(new String[] {
51
+ StringList rendererList = new StringList(new String[] {
52
52
  "JAVA2D", "JAVA2D_2X",
53
53
  "P2D", "P2D_2X", "P3D", "P3D_2X", "OPENGL",
54
54
  "E2D", "FX2D", "FX2D_2X", // experimental
@@ -57,42 +57,34 @@ public interface PConstants {
57
57
  });
58
58
  */
59
59
 
60
- static final String JAVA2D = "processing.awt.PGraphicsJava2D";
60
+ String JAVA2D = "processing.awt.PGraphicsJava2D";
61
61
 
62
- static final String P2D = "processing.opengl.PGraphics2D";
63
- static final String P3D = "processing.opengl.PGraphics3D";
64
-
65
- // When will it be time to remove this?
66
- @Deprecated
67
- static final String OPENGL = P3D;
62
+ String P2D = "processing.opengl.PGraphics2D";
63
+ String P3D = "processing.opengl.PGraphics3D";
68
64
 
69
65
  // Experimental, higher-performance Java 2D renderer (but no pixel ops)
70
- // static final String E2D = PGraphicsDanger2D.class.getName();
66
+ // String E2D = PGraphicsDanger2D.class.getName();
71
67
 
72
68
  // Experimental JavaFX renderer; even better 2D performance
73
- static final String FX2D = "processing.javafx.PGraphicsFX2D";
69
+ String FX2D = "processing.javafx.PGraphicsFX2D";
74
70
 
75
- static final String PDF = "processing.pdf.PGraphicsPDF";
76
- static final String SVG = "processing.svg.PGraphicsSVG";
77
- static final String DXF = "processing.dxf.RawDXF";
71
+ String PDF = "processing.pdf.PGraphicsPDF";
72
+ String SVG = "processing.svg.PGraphicsSVG";
73
+ String DXF = "processing.dxf.RawDXF";
78
74
 
79
75
  // platform IDs for PApplet.platform
80
76
 
81
- static final int OTHER = 0;
82
- static final int WINDOWS = 1;
83
- static final int MACOS = 2;
84
- static final int LINUX = 3;
85
-
86
- /** @deprecated Marketers gonna market, use {@link #MACOS} */
87
- @Deprecated
88
- static final int MACOSX = 2;
77
+ int OTHER = 0;
78
+ int WINDOWS = 1;
79
+ int MACOS = 2;
80
+ int LINUX = 3;
89
81
 
90
- static final String[] platformNames = {
91
- "other", "windows", "macosx", "linux"
82
+ String[] platformNames = {
83
+ "other", "windows", "macos", "linux"
92
84
  };
93
85
 
94
86
 
95
- static final float EPSILON = 0.0001f;
87
+ float EPSILON = 0.0001f;
96
88
 
97
89
 
98
90
  // max/min values for numbers
@@ -101,18 +93,18 @@ public interface PConstants {
101
93
  * Same as Float.MAX_VALUE, but included for parity with MIN_VALUE,
102
94
  * and to avoid teaching static methods on the first day.
103
95
  */
104
- static final float MAX_FLOAT = Float.MAX_VALUE;
96
+ float MAX_FLOAT = Float.MAX_VALUE;
105
97
  /**
106
98
  * Note that Float.MIN_VALUE is the smallest <EM>positive</EM> value
107
99
  * for a floating point number, not actually the minimum (negative) value
108
100
  * for a float. This constant equals 0xFF7FFFFF, the smallest (farthest
109
101
  * negative) value a float can have before it hits NaN.
110
102
  */
111
- static final float MIN_FLOAT = -Float.MAX_VALUE;
103
+ float MIN_FLOAT = -Float.MAX_VALUE;
112
104
  /** Largest possible (positive) integer value */
113
- static final int MAX_INT = Integer.MAX_VALUE;
105
+ int MAX_INT = Integer.MAX_VALUE;
114
106
  /** Smallest possible (negative) integer value */
115
- static final int MIN_INT = Integer.MIN_VALUE;
107
+ int MIN_INT = Integer.MIN_VALUE;
116
108
 
117
109
  // shapes
118
110
 
@@ -143,7 +135,7 @@ public interface PConstants {
143
135
  * @see PConstants#QUARTER_PI
144
136
  *
145
137
  */
146
- static final float PI = (float) Math.PI;
138
+ float PI = (float) Math.PI;
147
139
  /**
148
140
  * ( begin auto-generated from HALF_PI.xml )
149
141
  *
@@ -159,8 +151,8 @@ public interface PConstants {
159
151
  * @see PConstants#TAU
160
152
  * @see PConstants#QUARTER_PI
161
153
  */
162
- static final float HALF_PI = (float) (Math.PI / 2.0);
163
- static final float THIRD_PI = (float) (Math.PI / 3.0);
154
+ float HALF_PI = (float) (Math.PI / 2.0);
155
+ float THIRD_PI = (float) (Math.PI / 3.0);
164
156
  /**
165
157
  * ( begin auto-generated from QUARTER_PI.xml )
166
158
  *
@@ -176,7 +168,7 @@ public interface PConstants {
176
168
  * @see PConstants#TAU
177
169
  * @see PConstants#HALF_PI
178
170
  */
179
- static final float QUARTER_PI = (float) (Math.PI / 4.0);
171
+ float QUARTER_PI = (float) (Math.PI / 4.0);
180
172
  /**
181
173
  * ( begin auto-generated from TWO_PI.xml )
182
174
  *
@@ -192,7 +184,7 @@ public interface PConstants {
192
184
  * @see PConstants#HALF_PI
193
185
  * @see PConstants#QUARTER_PI
194
186
  */
195
- static final float TWO_PI = (float) (2.0 * Math.PI);
187
+ float TWO_PI = (float) (2.0 * Math.PI);
196
188
  /**
197
189
  * ( begin auto-generated from TAU.xml )
198
190
  *
@@ -208,51 +200,51 @@ public interface PConstants {
208
200
  * @see PConstants#HALF_PI
209
201
  * @see PConstants#QUARTER_PI
210
202
  */
211
- static final float TAU = (float) (2.0 * Math.PI);
203
+ float TAU = (float) (2.0 * Math.PI);
212
204
 
213
- static final float DEG_TO_RAD = PI/180.0f;
214
- static final float RAD_TO_DEG = 180.0f/PI;
205
+ float DEG_TO_RAD = PI/180.0f;
206
+ float RAD_TO_DEG = 180.0f/PI;
215
207
 
216
208
 
217
209
  // angle modes
218
210
 
219
- //static final int RADIANS = 0;
220
- //static final int DEGREES = 1;
211
+ //int RADIANS = 0;
212
+ //int DEGREES = 1;
221
213
 
222
214
 
223
215
  // used by split, all the standard whitespace chars
224
216
  // (also includes unicode nbsp, that little bostage)
225
217
 
226
- static final String WHITESPACE = " \t\n\r\f\u00A0";
218
+ String WHITESPACE = " \t\n\r\f\u00A0";
227
219
 
228
220
 
229
221
  // for colors and/or images
230
222
 
231
- static final int RGB = 1; // image & color
232
- static final int ARGB = 2; // image
233
- static final int HSB = 3; // color
234
- static final int ALPHA = 4; // image
235
- // static final int CMYK = 5; // image & color (someday)
223
+ int RGB = 1; // image & color
224
+ int ARGB = 2; // image
225
+ int HSB = 3; // color
226
+ int ALPHA = 4; // image
227
+ // int CMYK = 5; // image & color (someday)
236
228
 
237
229
 
238
230
  // image file types
239
231
 
240
- static final int TIFF = 0;
241
- static final int TARGA = 1;
242
- static final int JPEG = 2;
243
- static final int GIF = 3;
232
+ int TIFF = 0;
233
+ int TARGA = 1;
234
+ int JPEG = 2;
235
+ int GIF = 3;
244
236
 
245
237
 
246
238
  // filter/convert types
247
239
 
248
- static final int BLUR = 11;
249
- static final int GRAY = 12;
250
- static final int INVERT = 13;
251
- static final int OPAQUE = 14;
252
- static final int POSTERIZE = 15;
253
- static final int THRESHOLD = 16;
254
- static final int ERODE = 17;
255
- static final int DILATE = 18;
240
+ int BLUR = 11;
241
+ int GRAY = 12;
242
+ int INVERT = 13;
243
+ int OPAQUE = 14;
244
+ int POSTERIZE = 15;
245
+ int THRESHOLD = 16;
246
+ int ERODE = 17;
247
+ int DILATE = 18;
256
248
 
257
249
 
258
250
  // blend mode keyword definitions
@@ -276,21 +268,21 @@ public interface PConstants {
276
268
 
277
269
  // for messages
278
270
 
279
- static final int CHATTER = 0;
280
- static final int COMPLAINT = 1;
281
- static final int PROBLEM = 2;
271
+ int CHATTER = 0;
272
+ int COMPLAINT = 1;
273
+ int PROBLEM = 2;
282
274
 
283
275
 
284
276
  // types of transformation matrices
285
277
 
286
- static final int PROJECTION = 0;
287
- static final int MODELVIEW = 1;
278
+ int PROJECTION = 0;
279
+ int MODELVIEW = 1;
288
280
 
289
281
  // types of projection matrices
290
282
 
291
- static final int CUSTOM = 0; // user-specified fanciness
292
- static final int ORTHOGRAPHIC = 2; // 2D isometric projection
293
- static final int PERSPECTIVE = 3; // perspective matrix
283
+ int CUSTOM = 0; // user-specified fanciness
284
+ int ORTHOGRAPHIC = 2; // 2D isometric projection
285
+ int PERSPECTIVE = 3; // perspective matrix
294
286
 
295
287
 
296
288
  // shapes
@@ -298,34 +290,34 @@ public interface PConstants {
298
290
  // the low four bits set the variety,
299
291
  // higher bits set the specific shape type
300
292
 
301
- static final int GROUP = 0; // createShape()
293
+ int GROUP = 0; // createShape()
302
294
 
303
- static final int POINT = 2; // primitive
304
- static final int POINTS = 3; // vertices
295
+ int POINT = 2; // primitive
296
+ int POINTS = 3; // vertices
305
297
 
306
- static final int LINE = 4; // primitive
307
- static final int LINES = 5; // beginShape(), createShape()
308
- static final int LINE_STRIP = 50; // beginShape()
309
- static final int LINE_LOOP = 51;
298
+ int LINE = 4; // primitive
299
+ int LINES = 5; // beginShape(), createShape()
300
+ int LINE_STRIP = 50; // beginShape()
301
+ int LINE_LOOP = 51;
310
302
 
311
- static final int TRIANGLE = 8; // primitive
312
- static final int TRIANGLES = 9; // vertices
313
- static final int TRIANGLE_STRIP = 10; // vertices
314
- static final int TRIANGLE_FAN = 11; // vertices
303
+ int TRIANGLE = 8; // primitive
304
+ int TRIANGLES = 9; // vertices
305
+ int TRIANGLE_STRIP = 10; // vertices
306
+ int TRIANGLE_FAN = 11; // vertices
315
307
 
316
- static final int QUAD = 16; // primitive
317
- static final int QUADS = 17; // vertices
318
- static final int QUAD_STRIP = 18; // vertices
308
+ int QUAD = 16; // primitive
309
+ int QUADS = 17; // vertices
310
+ int QUAD_STRIP = 18; // vertices
319
311
 
320
- static final int POLYGON = 20; // in the end, probably cannot
321
- static final int PATH = 21; // separate these two
312
+ int POLYGON = 20; // in the end, probably cannot
313
+ int PATH = 21; // separate these two
322
314
 
323
- static final int RECT = 30; // primitive
324
- static final int ELLIPSE = 31; // primitive
325
- static final int ARC = 32; // primitive
315
+ int RECT = 30; // primitive
316
+ int ELLIPSE = 31; // primitive
317
+ int ARC = 32; // primitive
326
318
 
327
- static final int SPHERE = 40; // primitive
328
- static final int BOX = 41; // primitive
319
+ int SPHERE = 40; // primitive
320
+ int BOX = 41; // primitive
329
321
 
330
322
  // static public final int POINT_SPRITES = 52;
331
323
  // static public final int NON_STROKED_SHAPE = 60;
@@ -334,61 +326,61 @@ public interface PConstants {
334
326
 
335
327
  // shape closing modes
336
328
 
337
- static final int OPEN = 1;
338
- static final int CLOSE = 2;
329
+ int OPEN = 1;
330
+ int CLOSE = 2;
339
331
 
340
332
 
341
333
  // shape drawing modes
342
334
 
343
335
  /** Draw mode convention to use (x, y) to (width, height) */
344
- static final int CORNER = 0;
336
+ int CORNER = 0;
345
337
  /** Draw mode convention to use (x1, y1) to (x2, y2) coordinates */
346
- static final int CORNERS = 1;
338
+ int CORNERS = 1;
347
339
  /** Draw mode from the center, and using the radius */
348
- static final int RADIUS = 2;
340
+ int RADIUS = 2;
349
341
  /**
350
342
  * Draw from the center, using second pair of values as the diameter.
351
343
  * Formerly called CENTER_DIAMETER in alpha releases.
352
344
  */
353
- static final int CENTER = 3;
345
+ int CENTER = 3;
354
346
  /**
355
347
  * Synonym for the CENTER constant. Draw from the center,
356
348
  * using second pair of values as the diameter.
357
349
  */
358
- static final int DIAMETER = 3;
350
+ int DIAMETER = 3;
359
351
 
360
352
 
361
353
  // arc drawing modes
362
354
 
363
- //static final int OPEN = 1; // shared
364
- static final int CHORD = 2;
365
- static final int PIE = 3;
355
+ //int OPEN = 1; // shared
356
+ int CHORD = 2;
357
+ int PIE = 3;
366
358
 
367
359
 
368
360
  // vertically alignment modes for text
369
361
 
370
362
  /** Default vertical alignment for text placement */
371
- static final int BASELINE = 0;
363
+ int BASELINE = 0;
372
364
  /** Align text to the top */
373
- static final int TOP = 101;
365
+ int TOP = 101;
374
366
  /** Align text from the bottom, using the baseline. */
375
- static final int BOTTOM = 102;
367
+ int BOTTOM = 102;
376
368
 
377
369
 
378
370
  // uv texture orientation modes
379
371
 
380
372
  /** texture coordinates in 0..1 range */
381
- static final int NORMAL = 1;
373
+ int NORMAL = 1;
382
374
  /** texture coordinates based on image width/height */
383
- static final int IMAGE = 2;
375
+ int IMAGE = 2;
384
376
 
385
377
 
386
378
  // texture wrapping modes
387
379
 
388
380
  /** textures are clamped to their edges */
389
- public static final int CLAMP = 0;
381
+ int CLAMP = 0;
390
382
  /** textures wrap around when uv values go outside 0..1 range */
391
- public static final int REPEAT = 1;
383
+ int REPEAT = 1;
392
384
 
393
385
 
394
386
  // text placement modes
@@ -396,10 +388,10 @@ public interface PConstants {
396
388
  /**
397
389
  * textMode(MODEL) is the default, meaning that characters
398
390
  * will be affected by transformations like any other shapes.
399
- *
391
+ *
400
392
  * Changed value in 0093 to not interfere with LEFT, CENTER, and RIGHT.
401
393
  */
402
- static final int MODEL = 4;
394
+ int MODEL = 4;
403
395
 
404
396
  /**
405
397
  * textMode(SHAPE) draws text using the the glyph outlines of
@@ -407,11 +399,11 @@ public interface PConstants {
407
399
  * not available, then textMode(SHAPE) will be ignored and textMode(MODEL)
408
400
  * will be used instead. For this reason, be sure to call textMode()
409
401
  * <EM>after</EM> calling textFont().
410
- *
402
+ *
411
403
  * Currently, textMode(SHAPE) is only supported by OPENGL mode.
412
404
  * It also requires Java 1.2 or higher (OPENGL requires 1.4 anyway)
413
405
  */
414
- static final int SHAPE = 5;
406
+ int SHAPE = 5;
415
407
 
416
408
 
417
409
  // text alignment modes
@@ -419,19 +411,19 @@ public interface PConstants {
419
411
 
420
412
  // stroke modes
421
413
 
422
- static final int SQUARE = 1; // called 'butt' in the svg spec
423
- static final int ROUND = 1 << 1;
424
- static final int PROJECT = 1 << 2; // called 'square' in the svg spec
425
- static final int MITER = 1 << 3;
426
- static final int BEVEL = 1 << 5;
414
+ int SQUARE = 1; // called 'butt' in the svg spec
415
+ int ROUND = 1 << 1;
416
+ int PROJECT = 1 << 2; // called 'square' in the svg spec
417
+ int MITER = 1 << 3;
418
+ int BEVEL = 1 << 5;
427
419
 
428
420
 
429
421
  // lighting
430
422
 
431
- static final int AMBIENT = 0;
432
- static final int DIRECTIONAL = 1;
433
- //static final int POINT = 2; // shared with shape feature
434
- static final int SPOT = 3;
423
+ int AMBIENT = 0;
424
+ int DIRECTIONAL = 1;
425
+ //int POINT = 2; // shared with shape feature
426
+ int SPOT = 3;
435
427
 
436
428
 
437
429
  // key constants
@@ -444,88 +436,88 @@ public interface PConstants {
444
436
  // for 0125, these were changed to 'char' values, because they
445
437
  // can be upgraded to ints automatically by Java, but having them
446
438
  // as ints prevented split(blah, TAB) from working
447
- static final char BACKSPACE = 8;
448
- static final char TAB = 9;
449
- static final char ENTER = 10;
450
- static final char RETURN = 13;
451
- static final char ESC = 27;
452
- static final char DELETE = 127;
439
+ char BACKSPACE = 8;
440
+ char TAB = 9;
441
+ char ENTER = 10;
442
+ char RETURN = 13;
443
+ char ESC = 27;
444
+ char DELETE = 127;
453
445
 
454
446
  // i.e. if ((key == CODED) && (keyCode == UP))
455
- static final int CODED = 0xffff;
447
+ int CODED = 0xffff;
456
448
 
457
449
  // key will be CODED and keyCode will be this value
458
- static final int UP = KeyEvent.VK_UP;
459
- static final int DOWN = KeyEvent.VK_DOWN;
460
- static final int LEFT = KeyEvent.VK_LEFT;
461
- static final int RIGHT = KeyEvent.VK_RIGHT;
450
+ int UP = KeyEvent.VK_UP;
451
+ int DOWN = KeyEvent.VK_DOWN;
452
+ int LEFT = KeyEvent.VK_LEFT;
453
+ int RIGHT = KeyEvent.VK_RIGHT;
462
454
 
463
455
  // key will be CODED and keyCode will be this value
464
- static final int ALT = KeyEvent.VK_ALT;
465
- static final int CONTROL = KeyEvent.VK_CONTROL;
466
- static final int SHIFT = KeyEvent.VK_SHIFT;
456
+ int ALT = KeyEvent.VK_ALT;
457
+ int CONTROL = KeyEvent.VK_CONTROL;
458
+ int SHIFT = KeyEvent.VK_SHIFT;
467
459
 
468
460
 
469
461
  // orientations (only used on Android, ignored on desktop)
470
462
 
471
463
  /** Screen orientation constant for portrait (the hamburger way). */
472
- static final int PORTRAIT = 1;
464
+ int PORTRAIT = 1;
473
465
  /** Screen orientation constant for landscape (the hot dog way). */
474
- static final int LANDSCAPE = 2;
466
+ int LANDSCAPE = 2;
475
467
 
476
468
  /** Use with fullScreen() to indicate all available displays. */
477
- static final int SPAN = 0;
469
+ int SPAN = 0;
478
470
 
479
471
  // cursor types
480
472
 
481
- static final int ARROW = Cursor.DEFAULT_CURSOR;
482
- static final int CROSS = Cursor.CROSSHAIR_CURSOR;
483
- static final int HAND = Cursor.HAND_CURSOR;
484
- static final int MOVE = Cursor.MOVE_CURSOR;
485
- static final int TEXT = Cursor.TEXT_CURSOR;
486
- static final int WAIT = Cursor.WAIT_CURSOR;
473
+ int ARROW = Cursor.DEFAULT_CURSOR;
474
+ int CROSS = Cursor.CROSSHAIR_CURSOR;
475
+ int HAND = Cursor.HAND_CURSOR;
476
+ int MOVE = Cursor.MOVE_CURSOR;
477
+ int TEXT = Cursor.TEXT_CURSOR;
478
+ int WAIT = Cursor.WAIT_CURSOR;
487
479
 
488
480
 
489
481
  // hints - hint values are positive for the alternate version,
490
482
  // negative of the same value returns to the normal/default state
491
483
 
492
484
  @Deprecated
493
- static final int ENABLE_NATIVE_FONTS = 1;
485
+ int ENABLE_NATIVE_FONTS = 1;
494
486
  @Deprecated
495
- static final int DISABLE_NATIVE_FONTS = -1;
487
+ int DISABLE_NATIVE_FONTS = -1;
496
488
 
497
- static final int DISABLE_DEPTH_TEST = 2;
498
- static final int ENABLE_DEPTH_TEST = -2;
489
+ int DISABLE_DEPTH_TEST = 2;
490
+ int ENABLE_DEPTH_TEST = -2;
499
491
 
500
- static final int ENABLE_DEPTH_SORT = 3;
501
- static final int DISABLE_DEPTH_SORT = -3;
492
+ int ENABLE_DEPTH_SORT = 3;
493
+ int DISABLE_DEPTH_SORT = -3;
502
494
 
503
- static final int DISABLE_OPENGL_ERRORS = 4;
504
- static final int ENABLE_OPENGL_ERRORS = -4;
495
+ int DISABLE_OPENGL_ERRORS = 4;
496
+ int ENABLE_OPENGL_ERRORS = -4;
505
497
 
506
- static final int DISABLE_DEPTH_MASK = 5;
507
- static final int ENABLE_DEPTH_MASK = -5;
498
+ int DISABLE_DEPTH_MASK = 5;
499
+ int ENABLE_DEPTH_MASK = -5;
508
500
 
509
- static final int DISABLE_OPTIMIZED_STROKE = 6;
510
- static final int ENABLE_OPTIMIZED_STROKE = -6;
501
+ int DISABLE_OPTIMIZED_STROKE = 6;
502
+ int ENABLE_OPTIMIZED_STROKE = -6;
511
503
 
512
- static final int ENABLE_STROKE_PERSPECTIVE = 7;
513
- static final int DISABLE_STROKE_PERSPECTIVE = -7;
504
+ int ENABLE_STROKE_PERSPECTIVE = 7;
505
+ int DISABLE_STROKE_PERSPECTIVE = -7;
514
506
 
515
- static final int DISABLE_TEXTURE_MIPMAPS = 8;
516
- static final int ENABLE_TEXTURE_MIPMAPS = -8;
507
+ int DISABLE_TEXTURE_MIPMAPS = 8;
508
+ int ENABLE_TEXTURE_MIPMAPS = -8;
517
509
 
518
- static final int ENABLE_STROKE_PURE = 9;
519
- static final int DISABLE_STROKE_PURE = -9;
510
+ int ENABLE_STROKE_PURE = 9;
511
+ int DISABLE_STROKE_PURE = -9;
520
512
 
521
- static final int ENABLE_BUFFER_READING = 10;
522
- static final int DISABLE_BUFFER_READING = -10;
513
+ int ENABLE_BUFFER_READING = 10;
514
+ int DISABLE_BUFFER_READING = -10;
523
515
 
524
- static final int DISABLE_KEY_REPEAT = 11;
525
- static final int ENABLE_KEY_REPEAT = -11;
516
+ int DISABLE_KEY_REPEAT = 11;
517
+ int ENABLE_KEY_REPEAT = -11;
526
518
 
527
- static final int DISABLE_ASYNC_SAVEFRAME = 12;
528
- static final int ENABLE_ASYNC_SAVEFRAME = -12;
519
+ int DISABLE_ASYNC_SAVEFRAME = 12;
520
+ int ENABLE_ASYNC_SAVEFRAME = -12;
529
521
 
530
- static final int HINT_COUNT = 13;
522
+ int HINT_COUNT = 13;
531
523
  }