picrate 0.7.0-java → 0.8.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
- data/.mvn/wrapper/maven-wrapper.properties +2 -1
- data/.travis.yml +2 -5
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/Rakefile +15 -27
- data/docs/_config.yml +1 -1
- data/docs/_posts/2018-05-11-arch-linux-arm.md +1 -1
- data/docs/_posts/2018-11-18-building-gem.md +1 -1
- data/lib/picrate/app.rb +1 -1
- data/lib/picrate/native_folder.rb +1 -1
- data/lib/picrate/version.rb +1 -1
- data/mvnw +127 -51
- data/mvnw.cmd +182 -0
- data/pom.rb +39 -30
- data/pom.xml +50 -37
- data/src/main/java/monkstone/ColorUtil.java +1 -1
- data/src/main/java/monkstone/core/LibraryProxy.java +0 -1
- data/src/main/java/monkstone/noise/SimplexNoise.java +1 -1
- data/src/main/java/monkstone/vecmath/GfxRender.java +87 -0
- data/src/main/java/monkstone/vecmath/ShapeRender.java +1 -1
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +1 -1
- data/src/main/java/processing/awt/PGraphicsJava2D.java +48 -50
- data/src/main/java/processing/awt/PShapeJava2D.java +10 -0
- data/src/main/java/processing/awt/PSurfaceAWT.java +315 -371
- data/src/main/java/processing/core/PApplet.java +15424 -15495
- data/src/main/java/processing/core/PConstants.java +4 -4
- data/src/main/java/processing/core/PFont.java +394 -369
- data/src/main/java/processing/core/PGraphics.java +11 -10
- data/src/main/java/processing/core/PImage.java +1389 -1435
- data/src/main/java/processing/core/PMatrix2D.java +297 -294
- data/src/main/java/processing/core/PMatrix3D.java +641 -594
- data/src/main/java/processing/core/PShape.java +1755 -1784
- data/src/main/java/processing/core/PShapeOBJ.java +145 -133
- data/src/main/java/processing/core/PShapeSVG.java +808 -801
- data/src/main/java/processing/core/PStyle.java +141 -149
- data/src/main/java/processing/core/PSurface.java +111 -117
- data/src/main/java/processing/core/PSurfaceNone.java +178 -187
- data/src/main/java/processing/javafx/PGraphicsFX2D.java +349 -346
- data/src/main/java/processing/opengl/FontTexture.java +40 -59
- data/src/main/java/processing/opengl/FrameBuffer.java +28 -18
- data/src/main/java/processing/opengl/LinePath.java +7 -7
- data/src/main/java/processing/opengl/LineStroker.java +6 -10
- data/src/main/java/processing/opengl/PGL.java +56 -44
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +909 -2338
- data/src/main/java/processing/opengl/PJOGL.java +1722 -1763
- data/src/main/java/processing/opengl/PShader.java +1308 -1192
- data/src/main/java/processing/opengl/PShapeOpenGL.java +487 -1811
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +482 -497
- data/src/main/java/processing/opengl/Texture.java +99 -76
- data/src/main/java/processing/opengl/VertexBuffer.java +41 -43
- data/vendors/Rakefile +1 -1
- metadata +7 -4
@@ -12,351 +12,354 @@ import processing.core.PSurface;
|
|
12
12
|
*
|
13
13
|
* @author Martin Prout
|
14
14
|
*/
|
15
|
-
public class PGraphicsFX2D extends PGraphics{
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
15
|
+
public class PGraphicsFX2D extends PGraphics {
|
16
|
+
|
17
|
+
final String message = "FX2D renderer not supported in this version of picrate";
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
public PGraphicsFX2D() {
|
23
|
+
}
|
24
|
+
|
25
|
+
@Override
|
26
|
+
public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12) {
|
27
|
+
throw new UnsupportedOperationException(message);
|
28
|
+
}
|
29
|
+
|
30
|
+
@Override
|
31
|
+
public void applyMatrix(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33) {
|
32
|
+
throw new UnsupportedOperationException(message);
|
33
|
+
}
|
34
|
+
|
35
|
+
@Override
|
36
|
+
protected void backgroundImpl() {
|
37
|
+
throw new UnsupportedOperationException(message);
|
38
|
+
}
|
39
|
+
|
40
|
+
@Override
|
41
|
+
public void beginContour() {
|
42
|
+
throw new UnsupportedOperationException(message);
|
43
|
+
}
|
44
|
+
|
45
|
+
@Override
|
46
|
+
public void beginDraw() {
|
47
|
+
throw new UnsupportedOperationException(message);
|
48
|
+
}
|
49
|
+
|
50
|
+
@Override
|
51
|
+
public void beginShape(int kind) {
|
52
|
+
throw new UnsupportedOperationException(message);
|
53
|
+
}
|
54
|
+
|
55
|
+
@Override
|
56
|
+
public void bezierDetail(int detail) {
|
57
|
+
throw new UnsupportedOperationException(message);
|
58
|
+
}
|
59
|
+
|
60
|
+
@Override
|
61
|
+
public void bezierVertex(float x1, float y1, float x2, float y2, float x3, float y3) {
|
62
|
+
throw new UnsupportedOperationException(message);
|
63
|
+
}
|
64
|
+
|
65
|
+
@Override
|
66
|
+
public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
|
67
|
+
throw new UnsupportedOperationException(message);
|
68
|
+
}
|
69
|
+
|
70
|
+
@Override
|
71
|
+
public void box(float w, float h, float d) {
|
72
|
+
throw new UnsupportedOperationException(message);
|
73
|
+
}
|
74
|
+
|
75
|
+
@Override
|
76
|
+
public PSurface createSurface() {
|
77
|
+
throw new UnsupportedOperationException(message);
|
78
|
+
}
|
79
|
+
|
80
|
+
@Override
|
81
|
+
public void curveDetail(int detail) {
|
82
|
+
throw new UnsupportedOperationException(message);
|
83
|
+
}
|
84
|
+
|
85
|
+
@Override
|
86
|
+
public void curveVertex(float x, float y, float z) {
|
87
|
+
throw new UnsupportedOperationException(message);
|
88
|
+
}
|
89
|
+
|
90
|
+
@Override
|
91
|
+
public void endContour() {
|
92
|
+
throw new UnsupportedOperationException(message);
|
93
|
+
}
|
94
|
+
|
95
|
+
@Override
|
96
|
+
public void endDraw() {
|
97
|
+
throw new UnsupportedOperationException(message);
|
98
|
+
}
|
99
|
+
|
100
|
+
@Override
|
101
|
+
public void endShape(int mode) {
|
102
|
+
throw new UnsupportedOperationException(message);
|
103
|
+
}
|
104
|
+
|
105
|
+
@Override
|
106
|
+
public void flush() {
|
107
|
+
throw new UnsupportedOperationException(message);
|
108
|
+
}
|
109
|
+
|
110
|
+
@Override
|
111
|
+
public int get(int x, int y) {
|
112
|
+
throw new UnsupportedOperationException(message);
|
113
|
+
}
|
114
|
+
|
115
|
+
@Override
|
116
|
+
public PMatrix getMatrix() {
|
117
|
+
throw new UnsupportedOperationException(message);
|
118
|
+
}
|
119
|
+
|
120
|
+
@Override
|
121
|
+
public PMatrix2D getMatrix(PMatrix2D target) {
|
122
|
+
throw new UnsupportedOperationException(message);
|
123
|
+
}
|
124
|
+
|
125
|
+
@Override
|
126
|
+
public PMatrix3D getMatrix(PMatrix3D target) {
|
127
|
+
throw new UnsupportedOperationException(message);
|
128
|
+
}
|
129
|
+
|
130
|
+
@Override
|
131
|
+
public Object getNative() {
|
132
|
+
throw new UnsupportedOperationException(message);
|
133
|
+
}
|
134
|
+
|
135
|
+
@Override
|
136
|
+
public void line(float x1, float y1, float x2, float y2) {
|
137
|
+
throw new UnsupportedOperationException(message);
|
138
|
+
}
|
139
|
+
|
140
|
+
@Override
|
141
|
+
public void loadPixels() {
|
142
|
+
throw new UnsupportedOperationException(message);
|
143
|
+
}
|
144
|
+
|
145
|
+
@Override
|
146
|
+
public PShape loadShape(String filename) {
|
147
|
+
throw new UnsupportedOperationException(message);
|
148
|
+
}
|
149
|
+
|
150
|
+
@Override
|
151
|
+
public PShape loadShape(String filename, String options) {
|
152
|
+
throw new UnsupportedOperationException(message);
|
153
|
+
}
|
154
|
+
|
155
|
+
@Override
|
156
|
+
public void mask(PImage alpha) {
|
157
|
+
throw new UnsupportedOperationException(message);
|
158
|
+
}
|
159
|
+
|
160
|
+
@Override
|
161
|
+
public void noClip() {
|
162
|
+
throw new UnsupportedOperationException(message);
|
163
|
+
}
|
164
|
+
|
165
|
+
@Override
|
166
|
+
public void point(float x, float y) {
|
167
|
+
throw new UnsupportedOperationException(message);
|
168
|
+
}
|
169
|
+
|
170
|
+
@Override
|
171
|
+
public void popMatrix() {
|
172
|
+
throw new UnsupportedOperationException(message);
|
173
|
+
}
|
174
|
+
|
175
|
+
@Override
|
176
|
+
public void printMatrix() {
|
177
|
+
throw new UnsupportedOperationException(message);
|
178
|
+
}
|
179
|
+
|
180
|
+
@Override
|
181
|
+
public void pushMatrix() {
|
182
|
+
throw new UnsupportedOperationException(message);
|
183
|
+
}
|
184
|
+
|
185
|
+
@Override
|
186
|
+
public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
|
187
|
+
throw new UnsupportedOperationException(message);
|
188
|
+
}
|
189
|
+
|
190
|
+
@Override
|
191
|
+
public void quadraticVertex(float ctrlX, float ctrlY, float endX, float endY) {
|
192
|
+
throw new UnsupportedOperationException(message);
|
193
|
+
}
|
194
|
+
|
195
|
+
@Override
|
196
|
+
public void quadraticVertex(float x2, float y2, float z2, float x4, float y4, float z4) {
|
197
|
+
throw new UnsupportedOperationException(message);
|
198
|
+
}
|
199
|
+
|
200
|
+
@Override
|
201
|
+
public void resetMatrix() {
|
202
|
+
throw new UnsupportedOperationException(message);
|
203
|
+
}
|
204
|
+
|
205
|
+
@Override
|
206
|
+
public void rotate(float angle) {
|
207
|
+
throw new UnsupportedOperationException(message);
|
208
|
+
}
|
209
|
+
|
210
|
+
@Override
|
211
|
+
public void rotate(float angle, float vx, float vy, float vz) {
|
212
|
+
throw new UnsupportedOperationException(message);
|
213
|
+
}
|
214
|
+
|
215
|
+
@Override
|
216
|
+
public void rotateX(float angle) {
|
217
|
+
throw new UnsupportedOperationException(message);
|
218
|
+
}
|
219
|
+
|
220
|
+
@Override
|
221
|
+
public void rotateY(float angle) {
|
222
|
+
throw new UnsupportedOperationException(message);
|
223
|
+
}
|
224
|
+
|
225
|
+
@Override
|
226
|
+
public void rotateZ(float angle) {
|
227
|
+
throw new UnsupportedOperationException(message);
|
228
|
+
}
|
229
|
+
|
230
|
+
@Override
|
231
|
+
public void scale(float s) {
|
232
|
+
throw new UnsupportedOperationException(message);
|
233
|
+
}
|
234
|
+
|
235
|
+
@Override
|
236
|
+
public void scale(float sx, float sy) {
|
237
|
+
throw new UnsupportedOperationException(message);
|
238
|
+
}
|
239
|
+
|
240
|
+
@Override
|
241
|
+
public void scale(float sx, float sy, float sz) {
|
242
|
+
throw new UnsupportedOperationException(message);
|
243
|
+
}
|
244
|
+
|
245
|
+
@Override
|
246
|
+
public float screenX(float x, float y) {
|
247
|
+
throw new UnsupportedOperationException(message);
|
248
|
+
}
|
249
|
+
|
250
|
+
@Override
|
251
|
+
public float screenX(float x, float y, float z) {
|
252
|
+
throw new UnsupportedOperationException(message);
|
253
|
+
}
|
254
|
+
|
255
|
+
@Override
|
256
|
+
public float screenY(float x, float y) {
|
257
|
+
throw new UnsupportedOperationException(message);
|
258
|
+
}
|
259
|
+
|
260
|
+
@Override
|
261
|
+
public float screenY(float x, float y, float z) {
|
262
|
+
throw new UnsupportedOperationException(message);
|
263
|
+
}
|
264
|
+
|
265
|
+
@Override
|
266
|
+
public float screenZ(float x, float y, float z) {
|
267
|
+
throw new UnsupportedOperationException(message);
|
268
|
+
}
|
269
|
+
|
270
|
+
@Override
|
271
|
+
public void set(int x, int y, int argb) {
|
272
|
+
throw new UnsupportedOperationException(message);
|
273
|
+
}
|
274
|
+
|
275
|
+
@Override
|
276
|
+
public void setMatrix(PMatrix2D source) {
|
277
|
+
throw new UnsupportedOperationException(message);
|
278
|
+
}
|
279
|
+
|
280
|
+
@Override
|
281
|
+
public void setMatrix(PMatrix3D source) {
|
282
|
+
throw new UnsupportedOperationException(message);
|
283
|
+
}
|
284
|
+
|
285
|
+
@Override
|
286
|
+
public void shearX(float angle) {
|
287
|
+
throw new UnsupportedOperationException(message);
|
288
|
+
}
|
289
|
+
|
290
|
+
@Override
|
291
|
+
public void shearY(float angle) {
|
292
|
+
throw new UnsupportedOperationException(message);
|
293
|
+
}
|
294
|
+
|
295
|
+
@Override
|
296
|
+
public void sphere(float r) {
|
297
|
+
throw new UnsupportedOperationException(message);
|
298
|
+
}
|
299
|
+
|
300
|
+
@Override
|
301
|
+
public void strokeCap(int cap) {
|
302
|
+
throw new UnsupportedOperationException(message);
|
303
|
+
}
|
304
|
+
|
305
|
+
@Override
|
306
|
+
public void strokeJoin(int join) {
|
307
|
+
throw new UnsupportedOperationException(message);
|
308
|
+
}
|
309
|
+
|
310
|
+
@Override
|
311
|
+
public void strokeWeight(float weight) {
|
312
|
+
throw new UnsupportedOperationException(message);
|
313
|
+
}
|
314
|
+
|
315
|
+
@Override
|
316
|
+
public float textAscent() {
|
317
|
+
throw new UnsupportedOperationException(message);
|
318
|
+
}
|
319
|
+
|
320
|
+
@Override
|
321
|
+
public float textDescent() {
|
322
|
+
throw new UnsupportedOperationException(message);
|
323
|
+
}
|
324
|
+
|
325
|
+
@Override
|
326
|
+
public void texture(PImage image) {
|
327
|
+
throw new UnsupportedOperationException(message);
|
328
|
+
}
|
329
|
+
|
330
|
+
@Override
|
331
|
+
public void translate(float tx, float ty) {
|
332
|
+
throw new UnsupportedOperationException(message);
|
333
|
+
}
|
334
|
+
|
335
|
+
@Override
|
336
|
+
public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) {
|
337
|
+
throw new UnsupportedOperationException(message);
|
338
|
+
}
|
339
|
+
|
340
|
+
@Override
|
341
|
+
public void vertex(float x, float y) {
|
342
|
+
throw new UnsupportedOperationException(message);
|
343
|
+
}
|
344
|
+
|
345
|
+
@Override
|
346
|
+
public void vertex(float x, float y, float z) {
|
347
|
+
throw new UnsupportedOperationException(message);
|
348
|
+
}
|
349
|
+
|
350
|
+
@Override
|
351
|
+
public void vertex(float[] v) {
|
352
|
+
throw new UnsupportedOperationException(message);
|
353
|
+
}
|
354
|
+
|
355
|
+
@Override
|
356
|
+
public void vertex(float x, float y, float u, float v) {
|
357
|
+
throw new UnsupportedOperationException(message);
|
358
|
+
}
|
359
|
+
|
360
|
+
@Override
|
361
|
+
public void vertex(float x, float y, float z, float u, float v) {
|
362
|
+
throw new UnsupportedOperationException(message);
|
363
|
+
}
|
361
364
|
|
362
365
|
}
|