picrate 2.4.0-java → 2.5.1-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/wrapper/maven-wrapper.properties +1 -1
  3. data/CHANGELOG.md +9 -1
  4. data/Gemfile +1 -1
  5. data/README.md +2 -2
  6. data/Rakefile +1 -1
  7. data/docs/.gitignore +1 -0
  8. data/docs/_classes/{app_render → gfx_render}/app_render.md +5 -5
  9. data/docs/_methods/{noise_mode.md → noise_modes.md} +9 -21
  10. data/docs/_posts/2018-05-06-install_jruby.md +5 -5
  11. data/docs/_posts/2019-11-11-getting_started_buster.md +2 -2
  12. data/docs/_posts/2020-05-11-getting_started_manjaro.md +13 -4
  13. data/docs/about.md +1 -1
  14. data/lib/picrate/app.rb +2 -8
  15. data/lib/picrate/helper_methods.rb +6 -6
  16. data/lib/picrate/native_folder.rb +1 -1
  17. data/lib/picrate/version.rb +1 -1
  18. data/lib/{picrate-2.4.0.jar → picrate-2.5.1.jar} +0 -0
  19. data/picrate.gemspec +1 -1
  20. data/pom.rb +4 -4
  21. data/pom.xml +6 -9
  22. data/src/main/java/monkstone/FastNoiseModuleJava.java +19 -19
  23. data/src/main/java/monkstone/SmoothNoiseModuleJava.java +19 -19
  24. data/src/main/java/monkstone/noise/OpenSimplex2F.java +838 -737
  25. data/src/main/java/monkstone/noise/OpenSimplex2S.java +1 -1
  26. data/src/main/java/monkstone/vecmath/GfxRender.java +10 -11
  27. data/src/main/java/monkstone/vecmath/JRender.java +7 -7
  28. data/src/main/java/monkstone/vecmath/ShapeRender.java +3 -4
  29. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +28 -40
  30. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +30 -45
  31. data/src/main/java/processing/awt/PImageAWT.java +1 -1
  32. data/src/main/java/processing/awt/ShimAWT.java +1 -1
  33. data/src/main/java/processing/core/PApplet.java +1 -1
  34. data/src/main/java/processing/core/PImage.java +14 -14
  35. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +13 -13
  36. data/src/main/java/processing/opengl/PShader.java +0 -6
  37. data/src/main/java/processing/opengl/PSurfaceJOGL.java +4 -4
  38. data/src/main/{java/processing/opengl → resources}/cursors/arrow.png +0 -0
  39. data/src/main/{java/processing/opengl → resources}/cursors/cross.png +0 -0
  40. data/src/main/{java/processing/opengl → resources}/cursors/hand.png +0 -0
  41. data/src/main/{java/processing/opengl → resources}/cursors/license.txt +0 -0
  42. data/src/main/{java/processing/opengl → resources}/cursors/move.png +0 -0
  43. data/src/main/{java/processing/opengl → resources}/cursors/text.png +0 -0
  44. data/src/main/{java/processing/opengl → resources}/cursors/wait.png +0 -0
  45. data/src/main/{java/processing/opengl → resources}/shaders/ColorFrag.glsl +0 -0
  46. data/src/main/{java/processing/opengl → resources}/shaders/ColorVert.glsl +0 -0
  47. data/src/main/{java/processing/opengl → resources}/shaders/LightFrag.glsl +0 -0
  48. data/src/main/{java/processing/opengl → resources}/shaders/LightVert.glsl +0 -0
  49. data/src/main/{java/processing/opengl → resources}/shaders/LineFrag.glsl +0 -0
  50. data/src/main/{java/processing/opengl → resources}/shaders/LineVert.glsl +0 -0
  51. data/src/main/{java/processing/opengl → resources}/shaders/MaskFrag.glsl +0 -0
  52. data/src/main/{java/processing/opengl → resources}/shaders/PointFrag.glsl +0 -0
  53. data/src/main/{java/processing/opengl → resources}/shaders/PointVert.glsl +0 -0
  54. data/src/main/{java/processing/opengl → resources}/shaders/TexFrag.glsl +0 -0
  55. data/src/main/{java/processing/opengl → resources}/shaders/TexLightFrag.glsl +0 -0
  56. data/src/main/{java/processing/opengl → resources}/shaders/TexLightVert.glsl +0 -0
  57. data/src/main/{java/processing/opengl → resources}/shaders/TexVert.glsl +0 -0
  58. data/test/noise_test.rb +17 -0
  59. data/test/test_helper.rb +1 -1
  60. data/vendors/Rakefile +1 -1
  61. metadata +30 -41
  62. data/src/main/java/japplemenubar/JAppleMenuBar.java +0 -96
  63. data/src/main/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
  64. data/src/main/java/monkstone/complex/JComplex.java +0 -252
  65. data/src/main/java/monkstone/vecmath/AppRender.java +0 -88
  66. data/src/main/java/monkstone/vecmath/package-info.java +0 -20
  67. data/src/main/java/monkstone/vecmath/vec2/package-info.java +0 -6
  68. data/src/main/java/monkstone/vecmath/vec3/package-info.java +0 -6
@@ -1523,24 +1523,24 @@ public class PImage implements PConstants, Cloneable {
1523
1523
  * Sometimes called "Normal" or "Copy" in other software.
1524
1524
  *
1525
1525
  * <LI>BLEND - linear interpolation of colours:
1526
- * <TT>C = A*factor + B</TT>
1526
+ * <code>C = A*factor + B</code>
1527
1527
  *
1528
1528
  * <LI>ADD - additive blending with white clip:
1529
- * <TT>C = min(A*factor + B, 255)</TT>.
1529
+ * <code>C = min(A*factor + B, 255)</code>.
1530
1530
  * Clipped to 0..255, Photoshop calls this "Linear Burn",
1531
1531
  * and Director calls it "Add Pin".
1532
1532
  *
1533
1533
  * <LI>SUBTRACT - subtractive blend with black clip:
1534
- * <TT>C = max(B - A*factor, 0)</TT>.
1534
+ * <code>C = max(B - A*factor, 0)</code>.
1535
1535
  * Clipped to 0..255, Photoshop calls this "Linear Dodge",
1536
1536
  * and Director calls it "Subtract Pin".
1537
1537
  *
1538
1538
  * <LI>DARKEST - only the darkest colour succeeds:
1539
- * <TT>C = min(A*factor, B)</TT>.
1539
+ * <code>C = min(A*factor, B)</code>.
1540
1540
  * Illustrator calls this "Darken".
1541
1541
  *
1542
1542
  * <LI>LIGHTEST - only the lightest colour succeeds:
1543
- * <TT>C = max(A*factor, B)</TT>.
1543
+ * <code>C = max(A*factor, B)</code>.
1544
1544
  * Illustrator calls this "Lighten".
1545
1545
  *
1546
1546
  * <LI>DIFFERENCE - subtract colors from underlying image.
@@ -1571,12 +1571,12 @@ public class PImage implements PConstants, Cloneable {
1571
1571
  * <P>It is important to note that Processing uses "fast" code, not
1572
1572
  * necessarily "correct" code. No biggie, most software does. A nitpicker
1573
1573
  * can find numerous "off by 1 division" problems in the blend code where
1574
- * <TT>&gt;&gt;8</TT> or <TT>&gt;&gt;7</TT> is used when strictly speaking
1575
- * <TT>/255.0</T> or <TT>/127.0</TT> should have been used.</P>
1574
+ * <code>&gt;&gt;8</code> or <code>&gt;&gt;7</code> is used when strictly speaking
1575
+ * <code>/255.0</T> or <code>/127.0</code> should have been used.</P>
1576
1576
  * <P>For instance, exclusion (not intended for real-time use) reads
1577
- * <TT>r1 + r2 - ((2 * r1 * r2) / 255)</TT> because <TT>255 == 1.0</TT>
1578
- * not <TT>256 == 1.0</TT>. In other words, <TT>(255*255)>>8</TT> is not
1579
- * the same as <TT>(255*255)/255</TT>. But for real-time use the shifts
1577
+ * <code>r1 + r2 - ((2 * r1 * r2) / 255)</code> because <code>255 == 1.0</code>
1578
+ * not <code>256 == 1.0</code>. In other words, <code>(255*255)>>8</code> is not
1579
+ * the same as <code>(255*255)/255</code>. But for real-time use the shifts
1580
1580
  * are preferable, and the difference is insignificant for applications
1581
1581
  * built with Processing.</P>
1582
1582
  *
@@ -3104,9 +3104,9 @@ int testFunction(int dst, int src) {
3104
3104
  * </p>
3105
3105
  * Starting with revision 0092, the format setting is taken into account:
3106
3106
  * <UL>
3107
- * <LI><TT>ALPHA</TT> images written as 8bit grayscale (uses lowest byte)
3108
- * <LI><TT>RGB</TT> &rarr; 24 bits
3109
- * <LI><TT>ARGB</TT> &rarr; 32 bits
3107
+ * <LI><code>ALPHA</code> images written as 8bit grayscale (uses lowest byte)
3108
+ * <LI><code>RGB</code> &rarr; 24 bits
3109
+ * <LI><code>ARGB</code> &rarr; 32 bits
3110
3110
  * </UL>
3111
3111
  * All versions are RLE compressed.
3112
3112
  * </p>
@@ -3278,7 +3278,7 @@ int testFunction(int dst, int src) {
3278
3278
  * and the extension used is supported (usually png, jpg, jpeg, bmp,
3279
3279
  * and tiff), then those methods will be used to write the image.
3280
3280
  * To get a list of the supported formats for writing, use: <BR>
3281
- * <TT>println(javax.imageio.ImageIO.getReaderFormatNames())</TT>
3281
+ * <code>println(javax.imageio.ImageIO.getReaderFormatNames())</code>
3282
3282
  * <p>
3283
3283
  * To use the original built-in image writers, use .tga or .tif as the
3284
3284
  * extension, or don't include an extension. When no extension is used,
@@ -181,32 +181,32 @@ public class PGraphicsOpenGL extends PGraphics {
181
181
  // Shaders
182
182
 
183
183
  static protected URL defColorShaderVertURL =
184
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/ColorVert.glsl");
184
+ PGraphicsOpenGL.class.getResource("/shaders/ColorVert.glsl");
185
185
  static protected URL defTextureShaderVertURL =
186
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexVert.glsl");
186
+ PGraphicsOpenGL.class.getResource("/shaders/TexVert.glsl");
187
187
  static protected URL defLightShaderVertURL =
188
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightVert.glsl");
188
+ PGraphicsOpenGL.class.getResource("/shaders/LightVert.glsl");
189
189
  static protected URL defTexlightShaderVertURL =
190
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexLightVert.glsl");
190
+ PGraphicsOpenGL.class.getResource("/shaders/TexLightVert.glsl");
191
191
  static protected URL defColorShaderFragURL =
192
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/ColorFrag.glsl");
192
+ PGraphicsOpenGL.class.getResource("/shaders/ColorFrag.glsl");
193
193
  static protected URL defTextureShaderFragURL =
194
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexFrag.glsl");
194
+ PGraphicsOpenGL.class.getResource("/shaders/TexFrag.glsl");
195
195
  static protected URL defLightShaderFragURL =
196
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightFrag.glsl");
196
+ PGraphicsOpenGL.class.getResource("/shaders/LightFrag.glsl");
197
197
  static protected URL defTexlightShaderFragURL =
198
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexLightFrag.glsl");
198
+ PGraphicsOpenGL.class.getResource("/shaders/TexLightFrag.glsl");
199
199
 
200
200
  static protected URL defLineShaderVertURL =
201
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LineVert.glsl");
201
+ PGraphicsOpenGL.class.getResource("/shaders/LineVert.glsl");
202
202
  static protected URL defLineShaderFragURL =
203
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LineFrag.glsl");
203
+ PGraphicsOpenGL.class.getResource("/shaders/LineFrag.glsl");
204
204
  static protected URL defPointShaderVertURL =
205
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/PointVert.glsl");
205
+ PGraphicsOpenGL.class.getResource("/shaders/PointVert.glsl");
206
206
  static protected URL defPointShaderFragURL =
207
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/PointFrag.glsl");
207
+ PGraphicsOpenGL.class.getResource("/shaders/PointFrag.glsl");
208
208
  static protected URL maskShaderFragURL =
209
- PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/MaskFrag.glsl");
209
+ PGraphicsOpenGL.class.getResource("/shaders/MaskFrag.glsl");
210
210
 
211
211
  protected PShader defColorShader;
212
212
  protected PShader defTextureShader;
@@ -1757,16 +1757,10 @@ public class PShader implements PConstants {
1757
1757
  colorLoc = getAttributeLoc("color");
1758
1758
  texCoordLoc = getAttributeLoc("texCoord");
1759
1759
  normalLoc = getAttributeLoc("normal");
1760
-
1761
1760
  ambientLoc = getAttributeLoc("ambient");
1762
1761
  specularLoc = getAttributeLoc("specular");
1763
1762
  emissiveLoc = getAttributeLoc("emissive");
1764
1763
  shininessLoc = getAttributeLoc("shininess");
1765
-
1766
- directionLoc = getAttributeLoc("direction");
1767
-
1768
- offsetLoc = getAttributeLoc("offset");
1769
-
1770
1764
  directionLoc = getAttributeLoc("direction");
1771
1765
  offsetLoc = getAttributeLoc("offset");
1772
1766
 
@@ -944,10 +944,10 @@ public class PSurfaceJOGL implements PSurface {
944
944
  boolean hide = (sketch != null) &&
945
945
  (PApplet.platform == PConstants.WINDOWS);
946
946
  if (hide) setVisible(false);
947
-
947
+
948
948
  ShimAWT.selectFolderImpl(prompt, callbackMethod, file,
949
949
  callbackObject, null);
950
-
950
+
951
951
  if (hide) setVisible(true);
952
952
  });
953
953
  }
@@ -963,7 +963,7 @@ public class PSurfaceJOGL implements PSurface {
963
963
  String name = cursorNames.get(kind);
964
964
  if (name != null) {
965
965
  ImageIcon icon =
966
- new ImageIcon(getClass().getResource("cursors/" + name + ".png"));
966
+ new ImageIcon(getClass().getResource("/cursors/" + name + ".png"));
967
967
  PImage img = new PImageAWT(icon.getImage());
968
968
  // Most cursors just use the center as the hotspot...
969
969
  int x = img.width / 2;
@@ -1538,7 +1538,7 @@ public class PSurfaceJOGL implements PSurface {
1538
1538
  // String name = cursorNames.get(kind);
1539
1539
  // if (name != null) {
1540
1540
  // ImageIcon icon
1541
- // = new ImageIcon(getClass().getResource("cursors/" + name + ".png"));
1541
+ // = new ImageIcon(getClass().getResource("/cursors/" + name + ".png"));
1542
1542
  // PImage img = new PImage(icon.getImage());
1543
1543
  // // Most cursors just use the center as the hotspot...
1544
1544
  // int x = img.width / 2;
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'test_helper'
4
+
5
+ Java::Monkstone::PicrateLibrary.new.load(JRuby.runtime, false)
6
+
7
+ # include Processing::HelperMethods
8
+
9
+ Dir.chdir(File.dirname(__FILE__))
10
+ # Test processing map functions
11
+ class ProcessingNoiseTest < Minitest::Test
12
+ include NoiseModule
13
+ def test_noise1d
14
+ x = 0.5
15
+ assert_in_delta(noise(x), 0.5, 0.00001)
16
+ end
17
+ end
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  gem 'minitest'
4
- require 'java'
4
+ require 'jruby'
5
5
  require_relative '../lib/picrate'
6
6
  require 'minitest/pride'
7
7
  require 'minitest/autorun'
data/vendors/Rakefile CHANGED
@@ -8,7 +8,7 @@ SOUND = 'sound.zip'
8
8
  PROCESSING_GITHUB = 'https://github.com/processing'
9
9
  VIDEO = 'video.zip'
10
10
  DOWNLOAD = 'releases/download/latest'
11
- EXAMPLES = '0.5.7'
11
+ EXAMPLES = '0.5.8'
12
12
  HOME_DIR = ENV['HOME']
13
13
  LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
14
14
  PROJECT_DIR = File.join(HOME_DIR, 'projects')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.1
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -43,10 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.0'
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.0.1
46
+ version: '1.2'
50
47
  name: arcball
51
48
  prerelease: false
52
49
  type: :runtime
@@ -54,10 +51,7 @@ dependencies:
54
51
  requirements:
55
52
  - - "~>"
56
53
  - !ruby/object:Gem::Version
57
- version: '1.0'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 1.0.1
54
+ version: '1.2'
61
55
  description: |
62
56
  A batteries included version of processing in ruby, for raspberrypi and
63
57
  linux. Install samples to configures geany ide.
@@ -82,10 +76,10 @@ files:
82
76
  - docs/.gitignore
83
77
  - docs/_classes/aabb/aabb.md
84
78
  - docs/_classes/app/app.md
85
- - docs/_classes/app_render/app_render.md
86
79
  - docs/_classes/arc_ball/arc_ball.md
87
80
  - docs/_classes/chooser/chooser.md
88
81
  - docs/_classes/deglut/deglut.md
82
+ - docs/_classes/gfx_render/app_render.md
89
83
  - docs/_classes/library_proxy/library_proxy.md
90
84
  - docs/_classes/vec2d/vec2d.md
91
85
  - docs/_classes/vec3d/vec3d.md
@@ -130,7 +124,7 @@ files:
130
124
  - docs/_methods/map1d.md
131
125
  - docs/_methods/methods_summary.md
132
126
  - docs/_methods/mouse_pressed.md
133
- - docs/_methods/noise_mode.md
127
+ - docs/_methods/noise_modes.md
134
128
  - docs/_methods/post_initialize.md
135
129
  - docs/_methods/processing_api.md
136
130
  - docs/_methods/settings.md
@@ -191,7 +185,7 @@ files:
191
185
  - lib/jogl-all-natives-linux-amd64.jar
192
186
  - lib/jogl-all-natives-linux-armv6hf.jar
193
187
  - lib/jogl-all.jar
194
- - lib/picrate-2.4.0.jar
188
+ - lib/picrate-2.5.1.jar
195
189
  - lib/picrate.rb
196
190
  - lib/picrate/app.rb
197
191
  - lib/picrate/creators/parameters.rb
@@ -227,14 +221,11 @@ files:
227
221
  - picrate.gemspec
228
222
  - pom.rb
229
223
  - pom.xml
230
- - src/main/java/japplemenubar/JAppleMenuBar.java
231
- - src/main/java/japplemenubar/libjAppleMenuBar.jnilib
232
224
  - src/main/java/monkstone/ColorUtil.java
233
225
  - src/main/java/monkstone/FastNoiseModuleJava.java
234
226
  - src/main/java/monkstone/MathToolModule.java
235
227
  - src/main/java/monkstone/PicrateLibrary.java
236
228
  - src/main/java/monkstone/SmoothNoiseModuleJava.java
237
- - src/main/java/monkstone/complex/JComplex.java
238
229
  - src/main/java/monkstone/core/LibraryProxy.java
239
230
  - src/main/java/monkstone/fastmath/DegLutTables.java
240
231
  - src/main/java/monkstone/fastmath/Deglut.java
@@ -251,15 +242,11 @@ files:
251
242
  - src/main/java/monkstone/slider/SliderBar.java
252
243
  - src/main/java/monkstone/slider/SliderGroup.java
253
244
  - src/main/java/monkstone/slider/WheelHandler.java
254
- - src/main/java/monkstone/vecmath/AppRender.java
255
245
  - src/main/java/monkstone/vecmath/GfxRender.java
256
246
  - src/main/java/monkstone/vecmath/JRender.java
257
247
  - src/main/java/monkstone/vecmath/ShapeRender.java
258
- - src/main/java/monkstone/vecmath/package-info.java
259
248
  - src/main/java/monkstone/vecmath/vec2/Vec2.java
260
- - src/main/java/monkstone/vecmath/vec2/package-info.java
261
249
  - src/main/java/monkstone/vecmath/vec3/Vec3.java
262
- - src/main/java/monkstone/vecmath/vec3/package-info.java
263
250
  - src/main/java/monkstone/videoevent/CaptureEvent.java
264
251
  - src/main/java/monkstone/videoevent/MovieEvent.java
265
252
  - src/main/java/monkstone/videoevent/package-info.java
@@ -318,28 +305,15 @@ files:
318
305
  - src/main/java/processing/opengl/PSurfaceJOGL.java
319
306
  - src/main/java/processing/opengl/Texture.java
320
307
  - src/main/java/processing/opengl/VertexBuffer.java
321
- - src/main/java/processing/opengl/cursors/arrow.png
322
- - src/main/java/processing/opengl/cursors/cross.png
323
- - src/main/java/processing/opengl/cursors/hand.png
324
- - src/main/java/processing/opengl/cursors/license.txt
325
- - src/main/java/processing/opengl/cursors/move.png
326
- - src/main/java/processing/opengl/cursors/text.png
327
- - src/main/java/processing/opengl/cursors/wait.png
328
- - src/main/java/processing/opengl/shaders/ColorFrag.glsl
329
- - src/main/java/processing/opengl/shaders/ColorVert.glsl
330
- - src/main/java/processing/opengl/shaders/LightFrag.glsl
331
- - src/main/java/processing/opengl/shaders/LightVert.glsl
332
- - src/main/java/processing/opengl/shaders/LineFrag.glsl
333
- - src/main/java/processing/opengl/shaders/LineVert.glsl
334
- - src/main/java/processing/opengl/shaders/MaskFrag.glsl
335
- - src/main/java/processing/opengl/shaders/PointFrag.glsl
336
- - src/main/java/processing/opengl/shaders/PointVert.glsl
337
- - src/main/java/processing/opengl/shaders/TexFrag.glsl
338
- - src/main/java/processing/opengl/shaders/TexLightFrag.glsl
339
- - src/main/java/processing/opengl/shaders/TexLightVert.glsl
340
- - src/main/java/processing/opengl/shaders/TexVert.glsl
341
308
  - src/main/java/processing/pdf/PGraphicsPDF.java
342
309
  - src/main/java/processing/svg/PGraphicsSVG.java
310
+ - src/main/resources/cursors/arrow.png
311
+ - src/main/resources/cursors/cross.png
312
+ - src/main/resources/cursors/hand.png
313
+ - src/main/resources/cursors/license.txt
314
+ - src/main/resources/cursors/move.png
315
+ - src/main/resources/cursors/text.png
316
+ - src/main/resources/cursors/wait.png
343
317
  - src/main/resources/icon/icon-128.png
344
318
  - src/main/resources/icon/icon-16.png
345
319
  - src/main/resources/icon/icon-256.png
@@ -348,10 +322,24 @@ files:
348
322
  - src/main/resources/icon/icon-512.png
349
323
  - src/main/resources/icon/icon-64.png
350
324
  - src/main/resources/license.txt
325
+ - src/main/resources/shaders/ColorFrag.glsl
326
+ - src/main/resources/shaders/ColorVert.glsl
327
+ - src/main/resources/shaders/LightFrag.glsl
328
+ - src/main/resources/shaders/LightVert.glsl
329
+ - src/main/resources/shaders/LineFrag.glsl
330
+ - src/main/resources/shaders/LineVert.glsl
331
+ - src/main/resources/shaders/MaskFrag.glsl
332
+ - src/main/resources/shaders/PointFrag.glsl
333
+ - src/main/resources/shaders/PointVert.glsl
334
+ - src/main/resources/shaders/TexFrag.glsl
335
+ - src/main/resources/shaders/TexLightFrag.glsl
336
+ - src/main/resources/shaders/TexLightVert.glsl
337
+ - src/main/resources/shaders/TexVert.glsl
351
338
  - test/color_group_test.rb
352
339
  - test/deglut_spec_test.rb
353
340
  - test/helper_methods_test.rb
354
341
  - test/math_tool_test.rb
342
+ - test/noise_test.rb
355
343
  - test/respond_to_test.rb
356
344
  - test/sketches/key_event.rb
357
345
  - test/sketches/library/my_library/my_library.rb
@@ -381,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
381
369
  version: '0'
382
370
  requirements:
383
371
  - java runtime == 11+
384
- rubygems_version: 3.1.6
372
+ rubygems_version: 3.2.29
385
373
  signing_key:
386
374
  specification_version: 4
387
375
  summary: ruby implementation of processing-3 on raspberrypi and linux64
@@ -390,6 +378,7 @@ test_files:
390
378
  - test/deglut_spec_test.rb
391
379
  - test/helper_methods_test.rb
392
380
  - test/math_tool_test.rb
381
+ - test/noise_test.rb
393
382
  - test/respond_to_test.rb
394
383
  - test/sketches/key_event.rb
395
384
  - test/sketches/library/my_library/my_library.rb
@@ -1,96 +0,0 @@
1
- /*
2
- Part of the Processing project - http://processing.org
3
-
4
- Copyright (c) 2011-12 hansi raber, released under LGPL under agreement
5
-
6
- This library is free software; you can redistribute it and/or
7
- modify it under the terms of the GNU Lesser General Public
8
- License as published by the Free Software Foundation, version 2.1.
9
-
10
- This library is distributed in the hope that it will be useful,
11
- but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- Lesser General Public License for more details.
14
-
15
- You should have received a copy of the GNU Lesser General
16
- Public License along with this library; if not, write to the
17
- Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
- Boston, MA 02111-1307 USA
19
- */
20
- package japplemenubar;
21
-
22
- import java.io.*;
23
-
24
- import processing.core.PApplet;
25
-
26
-
27
- /**
28
- * Starting point for the application. General initialization should be done
29
- * inside the ApplicationController's init() method. If certain kinds of
30
- * non-Swing initialization takes too long, it should happen in a new Thread
31
- * and off the Swing event dispatch thread (EDT).
32
- *
33
- * @author hansi
34
- */
35
- public class JAppleMenuBar {
36
- static JAppleMenuBar instance;
37
- static final String FILENAME = "libjAppleMenuBar.jnilib";
38
-
39
- static {
40
- try {
41
- File temp = File.createTempFile("processing", "menubar");
42
- temp.delete(); // remove the file itself
43
- temp.mkdirs(); // create a directory out of it
44
- temp.deleteOnExit();
45
-
46
- File jnilibFile = new File(temp, FILENAME);
47
- InputStream input = JAppleMenuBar.class.getResourceAsStream(FILENAME);
48
- if (input != null) {
49
- if (PApplet.saveStream(jnilibFile, input)) {
50
- System.load(jnilibFile.getAbsolutePath());
51
- instance = new JAppleMenuBar();
52
-
53
- } else {
54
- sadness("Problem saving " + FILENAME + " for full screen use.");
55
- }
56
- } else {
57
- sadness("Could not load " + FILENAME + " from core.jar");
58
- }
59
- } catch (IOException e) {
60
- sadness("Unknown error, here's the stack trace.");
61
- e.printStackTrace();
62
- }
63
- }
64
-
65
-
66
- static void sadness(String msg) {
67
- System.err.println("Full screen mode disabled. " + msg);
68
- }
69
-
70
-
71
- // static public void show() {
72
- // instance.setVisible(true);
73
- // }
74
-
75
- /**
76
- *
77
- */
78
-
79
-
80
- static public void hide() {
81
- instance.setVisible(false, false);
82
- }
83
-
84
- /**
85
- *
86
- * @param visibility
87
- * @param kioskMode
88
- */
89
- public native void setVisible(boolean visibility, boolean kioskMode);
90
-
91
-
92
- // public void setVisible(boolean visibility) {
93
- // // Keep original API in-tact. Default kiosk-mode to off.
94
- // setVisible(visibility, false);
95
- // }
96
- }