propane 3.10.0-java → 3.11.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/wrapper/maven-wrapper.properties +1 -1
- data/CHANGELOG.md +2 -0
- data/README.md +7 -7
- data/lib/propane/app.rb +2 -5
- data/lib/propane/helper_methods.rb +6 -6
- data/lib/propane/version.rb +1 -1
- data/lib/{propane-3.10.0.jar → propane-3.11.0.jar} +0 -0
- data/pom.rb +6 -6
- data/pom.xml +6 -6
- data/propane.gemspec +3 -3
- data/src/main/java/monkstone/noise/OpenSimplex2F.java +838 -737
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +8 -13
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +14 -28
- data/src/main/java/processing/awt/PImageAWT.java +6 -4
- data/src/main/java/processing/core/PApplet.java +71 -59
- data/src/main/java/processing/core/PImage.java +14 -14
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +13 -13
- data/src/main/java/processing/opengl/PShader.java +1 -6
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +6 -6
- data/{lib/java/processing/opengl → src/main/resources}/cursors/arrow.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/cross.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/hand.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/license.txt +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/move.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/text.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/wait.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/ColorFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/ColorVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LightFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LightVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LineFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LineVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/MaskFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/PointFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/PointVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexLightFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexLightVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexVert.glsl +0 -0
- data/test/test_helper.rb +1 -0
- data/vendors/Rakefile +1 -1
- metadata +29 -155
- data/lib/java/japplemenubar/JAppleMenuBar.java +0 -88
- data/lib/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
- data/lib/java/monkstone/ColorUtil.java +0 -127
- data/lib/java/monkstone/MathToolModule.java +0 -287
- data/lib/java/monkstone/PropaneLibrary.java +0 -46
- data/lib/java/monkstone/core/LibraryProxy.java +0 -136
- data/lib/java/monkstone/fastmath/DegLutTables.java +0 -111
- data/lib/java/monkstone/fastmath/Deglut.java +0 -71
- data/lib/java/monkstone/fastmath/package-info.java +0 -6
- data/lib/java/monkstone/filechooser/Chooser.java +0 -39
- data/lib/java/monkstone/noise/FastTerrain.java +0 -874
- data/lib/java/monkstone/noise/Noise.java +0 -90
- data/lib/java/monkstone/noise/NoiseGenerator.java +0 -75
- data/lib/java/monkstone/noise/NoiseMode.java +0 -28
- data/lib/java/monkstone/noise/OpenSimplex2F.java +0 -881
- data/lib/java/monkstone/noise/OpenSimplex2S.java +0 -1106
- data/lib/java/monkstone/noise/SmoothTerrain.java +0 -1099
- data/lib/java/monkstone/slider/CustomHorizontalSlider.java +0 -164
- data/lib/java/monkstone/slider/CustomVerticalSlider.java +0 -178
- data/lib/java/monkstone/slider/SimpleHorizontalSlider.java +0 -145
- data/lib/java/monkstone/slider/SimpleSlider.java +0 -166
- data/lib/java/monkstone/slider/SimpleVerticalSlider.java +0 -157
- data/lib/java/monkstone/slider/Slider.java +0 -61
- data/lib/java/monkstone/slider/SliderBar.java +0 -245
- data/lib/java/monkstone/slider/SliderGroup.java +0 -56
- data/lib/java/monkstone/slider/WheelHandler.java +0 -35
- data/lib/java/monkstone/vecmath/GfxRender.java +0 -86
- data/lib/java/monkstone/vecmath/JRender.java +0 -56
- data/lib/java/monkstone/vecmath/ShapeRender.java +0 -87
- data/lib/java/monkstone/vecmath/package-info.java +0 -20
- data/lib/java/monkstone/vecmath/vec2/Vec2.java +0 -802
- data/lib/java/monkstone/vecmath/vec2/package-info.java +0 -6
- data/lib/java/monkstone/vecmath/vec3/Vec3.java +0 -727
- data/lib/java/monkstone/vecmath/vec3/package-info.java +0 -6
- data/lib/java/monkstone/videoevent/CaptureEvent.java +0 -27
- data/lib/java/monkstone/videoevent/MovieEvent.java +0 -32
- data/lib/java/monkstone/videoevent/package-info.java +0 -20
- data/lib/java/processing/awt/PGraphicsJava2D.java +0 -3040
- data/lib/java/processing/awt/PImageAWT.java +0 -377
- data/lib/java/processing/awt/PShapeJava2D.java +0 -387
- data/lib/java/processing/awt/PSurfaceAWT.java +0 -1581
- data/lib/java/processing/awt/ShimAWT.java +0 -581
- data/lib/java/processing/core/PApplet.java +0 -15156
- data/lib/java/processing/core/PConstants.java +0 -523
- data/lib/java/processing/core/PFont.java +0 -1126
- data/lib/java/processing/core/PGraphics.java +0 -8600
- data/lib/java/processing/core/PImage.java +0 -3377
- data/lib/java/processing/core/PMatrix.java +0 -208
- data/lib/java/processing/core/PMatrix2D.java +0 -562
- data/lib/java/processing/core/PMatrix3D.java +0 -890
- data/lib/java/processing/core/PShape.java +0 -3561
- data/lib/java/processing/core/PShapeOBJ.java +0 -483
- data/lib/java/processing/core/PShapeSVG.java +0 -2016
- data/lib/java/processing/core/PStyle.java +0 -63
- data/lib/java/processing/core/PSurface.java +0 -198
- data/lib/java/processing/core/PSurfaceNone.java +0 -431
- data/lib/java/processing/core/PVector.java +0 -1066
- data/lib/java/processing/core/ThinkDifferent.java +0 -115
- data/lib/java/processing/data/DoubleDict.java +0 -850
- data/lib/java/processing/data/DoubleList.java +0 -928
- data/lib/java/processing/data/FloatDict.java +0 -847
- data/lib/java/processing/data/FloatList.java +0 -936
- data/lib/java/processing/data/IntDict.java +0 -807
- data/lib/java/processing/data/IntList.java +0 -936
- data/lib/java/processing/data/JSONArray.java +0 -1260
- data/lib/java/processing/data/JSONObject.java +0 -2282
- data/lib/java/processing/data/JSONTokener.java +0 -435
- data/lib/java/processing/data/LongDict.java +0 -802
- data/lib/java/processing/data/LongList.java +0 -937
- data/lib/java/processing/data/Sort.java +0 -46
- data/lib/java/processing/data/StringDict.java +0 -613
- data/lib/java/processing/data/StringList.java +0 -800
- data/lib/java/processing/data/Table.java +0 -4936
- data/lib/java/processing/data/TableRow.java +0 -198
- data/lib/java/processing/data/XML.java +0 -1156
- data/lib/java/processing/dxf/RawDXF.java +0 -404
- data/lib/java/processing/event/Event.java +0 -125
- data/lib/java/processing/event/KeyEvent.java +0 -70
- data/lib/java/processing/event/MouseEvent.java +0 -114
- data/lib/java/processing/event/TouchEvent.java +0 -57
- data/lib/java/processing/javafx/PGraphicsFX2D.java +0 -32
- data/lib/java/processing/javafx/PSurfaceFX.java +0 -173
- data/lib/java/processing/net/Client.java +0 -744
- data/lib/java/processing/net/Server.java +0 -388
- data/lib/java/processing/opengl/FontTexture.java +0 -378
- data/lib/java/processing/opengl/FrameBuffer.java +0 -513
- data/lib/java/processing/opengl/LinePath.java +0 -627
- data/lib/java/processing/opengl/LineStroker.java +0 -681
- data/lib/java/processing/opengl/PGL.java +0 -3483
- data/lib/java/processing/opengl/PGraphics2D.java +0 -615
- data/lib/java/processing/opengl/PGraphics3D.java +0 -281
- data/lib/java/processing/opengl/PGraphicsOpenGL.java +0 -13753
- data/lib/java/processing/opengl/PJOGL.java +0 -2008
- data/lib/java/processing/opengl/PShader.java +0 -1484
- data/lib/java/processing/opengl/PShapeOpenGL.java +0 -5269
- data/lib/java/processing/opengl/PSurfaceJOGL.java +0 -1385
- data/lib/java/processing/opengl/Texture.java +0 -1696
- data/lib/java/processing/opengl/VertexBuffer.java +0 -88
- data/lib/java/processing/pdf/PGraphicsPDF.java +0 -581
- data/lib/java/processing/svg/PGraphicsSVG.java +0 -378
- data/src/main/java/processing/opengl/cursors/arrow.png +0 -0
- data/src/main/java/processing/opengl/cursors/cross.png +0 -0
- data/src/main/java/processing/opengl/cursors/hand.png +0 -0
- data/src/main/java/processing/opengl/cursors/license.txt +0 -27
- data/src/main/java/processing/opengl/cursors/move.png +0 -0
- data/src/main/java/processing/opengl/cursors/text.png +0 -0
- data/src/main/java/processing/opengl/cursors/wait.png +0 -0
- data/src/main/java/processing/opengl/shaders/ColorFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/ColorVert.glsl +0 -34
- data/src/main/java/processing/opengl/shaders/LightFrag.glsl +0 -33
- data/src/main/java/processing/opengl/shaders/LightVert.glsl +0 -151
- data/src/main/java/processing/opengl/shaders/LineFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/LineVert.glsl +0 -100
- data/src/main/java/processing/opengl/shaders/MaskFrag.glsl +0 -40
- data/src/main/java/processing/opengl/shaders/PointFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/PointVert.glsl +0 -56
- data/src/main/java/processing/opengl/shaders/TexFrag.glsl +0 -37
- data/src/main/java/processing/opengl/shaders/TexLightFrag.glsl +0 -37
- data/src/main/java/processing/opengl/shaders/TexLightVert.glsl +0 -157
- data/src/main/java/processing/opengl/shaders/TexVert.glsl +0 -38
@@ -1,90 +0,0 @@
|
|
1
|
-
package monkstone.noise;
|
2
|
-
|
3
|
-
/*
|
4
|
-
* Copyright (c) 2021 Martin Prout
|
5
|
-
*
|
6
|
-
* This library is free software; you can redistribute it and/or
|
7
|
-
* modify it under the terms of the GNU General Public
|
8
|
-
* License as published by the Free Software Foundation; either
|
9
|
-
* version 3.0 of the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* http://creativecommons.org/licenses/LGPL/2.1/
|
12
|
-
*
|
13
|
-
* This library is distributed in the hope that it will be useful,
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
-
* Lesser General Public License for more details.
|
17
|
-
*
|
18
|
-
* You should have received a copy of the GNU General Public
|
19
|
-
* License along with this library; if not, write to the Free Software
|
20
|
-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
|
-
*/
|
22
|
-
public interface Noise {
|
23
|
-
|
24
|
-
/**
|
25
|
-
*
|
26
|
-
* @param x
|
27
|
-
* @return
|
28
|
-
*/
|
29
|
-
default float noise(float x) {
|
30
|
-
return noise(x, 0);
|
31
|
-
}
|
32
|
-
|
33
|
-
/**
|
34
|
-
*
|
35
|
-
* @param x
|
36
|
-
* @param y
|
37
|
-
* @return
|
38
|
-
*/
|
39
|
-
default float noise(float x, float y) {
|
40
|
-
return noise(x, y, 0);
|
41
|
-
}
|
42
|
-
|
43
|
-
/**
|
44
|
-
* <p>
|
45
|
-
* Returns the Perlin noise value at specified coordinates. Perlin noise is
|
46
|
-
* a random sequence generator producing a more natural ordered, harmonic
|
47
|
-
* succession of numbers compared to the standard <b>random()</b> function.
|
48
|
-
* It was invented by Ken Perlin in the 1980s and been used since in
|
49
|
-
* graphical applications to produce procedural textures, natural motion,
|
50
|
-
* shapes, terrains etc. The main difference to the
|
51
|
-
* <b>random()</b> function is that Perlin noise is defined in an infinite
|
52
|
-
* n-dimensional space where each pair of coordinates corresponds to a fixed
|
53
|
-
* semi-random value (fixed only for the lifespan of the program). The
|
54
|
-
* resulting value will always be between 0.0 and 1.0. Processing can
|
55
|
-
* compute 1D, 2D and 3D noise, depending on the number of coordinates
|
56
|
-
* given. The noise value can be animated by moving through the noise space
|
57
|
-
* as demonstrated in the example above. The 2nd and 3rd dimension can also
|
58
|
-
* be interpreted as time.The actual noise is structured similar to an audio
|
59
|
-
* signal, in respect to the function's use of frequencies. Similar to the
|
60
|
-
* concept of harmonics in physics, perlin noise is computed over several
|
61
|
-
* octaves which are added together for the final result. Another way to
|
62
|
-
* adjust the character of the resulting sequence is the scale of the input
|
63
|
-
* coordinates. As the function works within an infinite space the value of
|
64
|
-
* the coordinates doesn't matter as such, only the distance between
|
65
|
-
* successive coordinates does (eg. when using <b>noise()</b> within a
|
66
|
-
* loop). As a general rule the smaller the difference between coordinates,
|
67
|
-
* the smoother the resulting noise sequence will be. Steps of 0.005-0.03
|
68
|
-
* work best for most applications, but this will differ depending on use.
|
69
|
-
* <p>
|
70
|
-
* @param x x-coordinate in noise space
|
71
|
-
* @param y y-coordinate in noise space
|
72
|
-
* @param z z-coordinate in noise space
|
73
|
-
* @return
|
74
|
-
*/
|
75
|
-
float noise(float x, float y, float z);
|
76
|
-
|
77
|
-
float noise(float x, float y, float z, float w);
|
78
|
-
|
79
|
-
void noiseMode(NoiseMode mode);
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Sets the seed value for <b>noise()</b>.By default, <b>noise()</b>
|
83
|
-
* produces different results each time the program is run. Set the
|
84
|
-
* <b>value</b> parameter to a constant to return the same pseudo-random
|
85
|
-
* numbers each time the software is run.
|
86
|
-
*
|
87
|
-
* @param seed
|
88
|
-
*/
|
89
|
-
void noiseSeed(long seed);
|
90
|
-
}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* To change this license header, choose License Headers in Project Properties.
|
3
|
-
* To change this template file, choose Tools | Templates
|
4
|
-
* and open the template in the editor.
|
5
|
-
*/
|
6
|
-
package monkstone.noise;
|
7
|
-
|
8
|
-
/**
|
9
|
-
*
|
10
|
-
* @author Martin Prout
|
11
|
-
*/
|
12
|
-
public class NoiseGenerator implements Noise {
|
13
|
-
|
14
|
-
private Noise implementation;
|
15
|
-
private NoiseMode mode;
|
16
|
-
private Long seed;
|
17
|
-
|
18
|
-
public NoiseGenerator() {
|
19
|
-
seed = System.currentTimeMillis();
|
20
|
-
this.implementation = new OpenSimplex2F(seed);
|
21
|
-
this.mode = NoiseMode.DEFAULT;
|
22
|
-
}
|
23
|
-
|
24
|
-
@Override
|
25
|
-
public void noiseMode(NoiseMode mode) {
|
26
|
-
switch (mode) {
|
27
|
-
case DEFAULT:
|
28
|
-
if (this.mode != NoiseMode.DEFAULT) {
|
29
|
-
this.implementation = new OpenSimplex2F(seed);
|
30
|
-
this.mode = NoiseMode.DEFAULT;
|
31
|
-
}
|
32
|
-
break;
|
33
|
-
case OPEN_SMOOTH:
|
34
|
-
if (this.mode != NoiseMode.OPEN_SMOOTH) {
|
35
|
-
this.implementation = new OpenSimplex2S(seed);
|
36
|
-
this.mode = NoiseMode.OPEN_SMOOTH;
|
37
|
-
break;
|
38
|
-
}
|
39
|
-
case SMOOTH_TERRAIN:
|
40
|
-
if (this.mode != NoiseMode.SMOOTH_TERRAIN) {
|
41
|
-
this.implementation = new SmoothTerrain(seed);
|
42
|
-
this.mode = NoiseMode.SMOOTH_TERRAIN;
|
43
|
-
}
|
44
|
-
break;
|
45
|
-
case FAST_TERRAIN:
|
46
|
-
if (this.mode != NoiseMode.FAST_TERRAIN) {
|
47
|
-
this.implementation = new FastTerrain(seed);
|
48
|
-
this.mode = NoiseMode.FAST_TERRAIN;
|
49
|
-
}
|
50
|
-
break;
|
51
|
-
default:
|
52
|
-
this.implementation = new OpenSimplex2F(seed);
|
53
|
-
this.mode = NoiseMode.DEFAULT;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
public NoiseMode noiseMode() {
|
58
|
-
return this.mode;
|
59
|
-
}
|
60
|
-
|
61
|
-
@Override
|
62
|
-
public float noise(float x, float y, float z) {
|
63
|
-
return implementation.noise(x, y, z);
|
64
|
-
}
|
65
|
-
|
66
|
-
@Override
|
67
|
-
public float noise(float x, float y, float z, float w) {
|
68
|
-
return implementation.noise(x, y, z, w);
|
69
|
-
}
|
70
|
-
|
71
|
-
@Override
|
72
|
-
public void noiseSeed(long seed) {
|
73
|
-
this.seed = seed;
|
74
|
-
}
|
75
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* To change this license header, choose License Headers in Project Properties.
|
3
|
-
* To change this template file, choose Tools | Templates
|
4
|
-
* and open the template in the editor.
|
5
|
-
*/
|
6
|
-
package monkstone.noise;
|
7
|
-
|
8
|
-
/**
|
9
|
-
*
|
10
|
-
* @author tux
|
11
|
-
*/
|
12
|
-
public enum NoiseMode {
|
13
|
-
DEFAULT("Fast OpenSimplex2"),
|
14
|
-
FAST_TERRAIN("Fast Terrain"),
|
15
|
-
SMOOTH_TERRAIN("Smooth Terrain"),
|
16
|
-
OPEN_SMOOTH("Smooth OpenSimplex2");
|
17
|
-
|
18
|
-
private final String description;
|
19
|
-
|
20
|
-
NoiseMode(String description) {
|
21
|
-
this.description = description;
|
22
|
-
}
|
23
|
-
|
24
|
-
public String description() {
|
25
|
-
return description;
|
26
|
-
}
|
27
|
-
|
28
|
-
}
|