picrate 2.3.0-java → 2.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/docs/.gitignore +1 -0
- data/docs/_classes/{app_render → gfx_render}/app_render.md +5 -5
- data/docs/_methods/{noise_mode.md → noise_modes.md} +9 -21
- data/docs/_posts/2018-05-06-install_jruby.md +5 -5
- data/docs/_posts/2019-11-11-getting_started_buster.md +1 -1
- data/lib/picrate/app.rb +3 -7
- data/lib/picrate/native_folder.rb +1 -1
- data/lib/picrate/version.rb +1 -1
- data/lib/{picrate-2.3.0.jar → picrate-2.5.0.jar} +0 -0
- data/{lib → library/pdf}/itextpdf-5.5.13.2.jar +0 -0
- data/library/pdf/pdf.rb +1 -0
- data/library/svg/batik-all-1.14.jar +0 -0
- data/library/svg/svg.rb +7 -0
- data/picrate.gemspec +4 -3
- data/pom.rb +19 -10
- data/pom.xml +19 -6
- data/src/main/java/monkstone/FastNoiseModuleJava.java +127 -0
- data/src/main/java/monkstone/PicrateLibrary.java +2 -0
- data/src/main/java/monkstone/SmoothNoiseModuleJava.java +127 -0
- data/src/main/java/monkstone/noise/OpenSimplex2F.java +62 -29
- data/src/main/java/monkstone/noise/OpenSimplex2S.java +1138 -1106
- data/src/main/java/monkstone/vecmath/GfxRender.java +10 -11
- data/src/main/java/monkstone/vecmath/JRender.java +7 -7
- data/src/main/java/monkstone/vecmath/ShapeRender.java +3 -4
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +28 -40
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +30 -45
- data/src/main/java/processing/awt/PImageAWT.java +1 -1
- data/src/main/java/processing/awt/ShimAWT.java +1 -1
- data/src/main/java/processing/core/PApplet.java +1 -92
- data/src/main/java/processing/core/PImage.java +14 -14
- data/src/main/java/processing/opengl/PShader.java +0 -6
- data/src/main/java/processing/pdf/PGraphicsPDF.java +61 -139
- data/src/main/java/processing/svg/PGraphicsSVG.java +378 -0
- data/test/noise_test.rb +17 -0
- data/test/respond_to_test.rb +0 -1
- data/test/test_helper.rb +1 -1
- data/vendors/Rakefile +1 -1
- metadata +21 -32
- data/src/main/java/japplemenubar/JAppleMenuBar.java +0 -96
- data/src/main/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
- data/src/main/java/monkstone/complex/JComplex.java +0 -252
- data/src/main/java/monkstone/noise/FastTerrain.java +0 -874
- data/src/main/java/monkstone/noise/Noise.java +0 -90
- data/src/main/java/monkstone/noise/NoiseGenerator.java +0 -75
- data/src/main/java/monkstone/noise/NoiseMode.java +0 -28
- data/src/main/java/monkstone/noise/SmoothTerrain.java +0 -1099
- data/src/main/java/monkstone/vecmath/AppRender.java +0 -88
- data/src/main/java/monkstone/vecmath/package-info.java +0 -20
- data/src/main/java/monkstone/vecmath/vec2/package-info.java +0 -6
- data/src/main/java/monkstone/vecmath/vec3/package-info.java +0 -6
@@ -1,88 +0,0 @@
|
|
1
|
-
package monkstone.vecmath;
|
2
|
-
|
3
|
-
import processing.core.PApplet;
|
4
|
-
import processing.core.PGraphics;
|
5
|
-
|
6
|
-
/**
|
7
|
-
*
|
8
|
-
*
|
9
|
-
* @author Martin Prout
|
10
|
-
*/
|
11
|
-
public class AppRender implements JRender {
|
12
|
-
|
13
|
-
final PGraphics g;
|
14
|
-
|
15
|
-
/**
|
16
|
-
*
|
17
|
-
* @param app PApplet
|
18
|
-
*/
|
19
|
-
public AppRender(final PApplet app) {
|
20
|
-
this.g = app.g;
|
21
|
-
}
|
22
|
-
|
23
|
-
/**
|
24
|
-
*
|
25
|
-
* @param x double
|
26
|
-
* @param y double
|
27
|
-
*/
|
28
|
-
@Override
|
29
|
-
public void vertex(double x, double y) {
|
30
|
-
g.vertex((float) x, (float) y);
|
31
|
-
}
|
32
|
-
|
33
|
-
/**
|
34
|
-
*
|
35
|
-
* @param x double
|
36
|
-
* @param y double
|
37
|
-
*/
|
38
|
-
@Override
|
39
|
-
public void curveVertex(double x, double y) {
|
40
|
-
g.curveVertex((float) x, (float) y);
|
41
|
-
}
|
42
|
-
|
43
|
-
/**
|
44
|
-
*
|
45
|
-
* @param x double
|
46
|
-
* @param y double
|
47
|
-
* @param z double
|
48
|
-
*/
|
49
|
-
@Override
|
50
|
-
public void vertex(double x, double y, double z) {
|
51
|
-
g.vertex((float) x, (float) y, (float) z);
|
52
|
-
}
|
53
|
-
|
54
|
-
/**
|
55
|
-
*
|
56
|
-
* @param x double
|
57
|
-
* @param y double
|
58
|
-
* @param z double
|
59
|
-
*/
|
60
|
-
@Override
|
61
|
-
public void normal(double x, double y, double z) {
|
62
|
-
g.normal((float) x, (float) y, (float) z);
|
63
|
-
}
|
64
|
-
|
65
|
-
/**
|
66
|
-
*
|
67
|
-
* @param x double
|
68
|
-
* @param y double
|
69
|
-
* @param z double
|
70
|
-
* @param u double
|
71
|
-
* @param v double
|
72
|
-
*/
|
73
|
-
@Override
|
74
|
-
public void vertex(double x, double y, double z, double u, double v) {
|
75
|
-
g.vertex((float) x, (float) y, (float) z, (float) u, (float) v);
|
76
|
-
}
|
77
|
-
|
78
|
-
/**
|
79
|
-
*
|
80
|
-
* @param x double
|
81
|
-
* @param y double
|
82
|
-
* @param z double
|
83
|
-
*/
|
84
|
-
@Override
|
85
|
-
public void curveVertex(double x, double y, double z) {
|
86
|
-
g.curveVertex((float) x, (float) y, (float) z);
|
87
|
-
}
|
88
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2018-21 Martin Prout
|
3
|
-
*
|
4
|
-
* This library is free software; you can redistribute it and/or
|
5
|
-
* modify it under the terms of the GNU General Public
|
6
|
-
* License as published by the Free Software Foundation; either
|
7
|
-
* version 3.0 of the License, or (at your option) any later version.
|
8
|
-
*
|
9
|
-
* http://creativecommons.org/licenses/LGPL/2.1/
|
10
|
-
*
|
11
|
-
* This library is distributed in the hope that it will be useful,
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
* Lesser General Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU General Public
|
17
|
-
* License along with this library; if not, write to the Free Software
|
18
|
-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
19
|
-
*/
|
20
|
-
package monkstone.vecmath;
|