propane 3.7.1-java → 3.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/.mvn/extensions.xml +1 -1
- data/CHANGELOG.md +2 -0
- data/README.md +5 -12
- data/lib/propane/app.rb +3 -0
- data/lib/propane/version.rb +1 -1
- data/pom.rb +2 -2
- data/pom.xml +3 -3
- data/propane.gemspec +2 -0
- data/src/main/java/monkstone/fastmath/DegLutTables.java +111 -0
- data/src/main/java/monkstone/fastmath/Deglut.java +6 -56
- data/src/main/java/monkstone/noise/Noise.java +116 -0
- data/src/main/java/monkstone/noise/NoiseGenerator.java +63 -0
- data/src/main/java/monkstone/noise/NoiseMode.java +15 -0
- data/src/main/java/monkstone/noise/SimplexNoise.java +135 -101
- data/src/main/java/monkstone/noise/ValueNoise.java +170 -0
- data/src/main/java/processing/core/PApplet.java +13243 -13354
- data/src/main/java/processing/core/PGraphics.java +2 -2
- data/test/deglut_spec_test.rb +2 -2
- data/vendors/Rakefile +1 -1
- metadata +8 -4
- data/library/simplex_noise/simplex_noise.rb +0 -5
@@ -626,8 +626,8 @@ public class PGraphics extends PImage implements PConstants {
|
|
626
626
|
sinLUT = new float[SINCOS_LENGTH];
|
627
627
|
cosLUT = new float[SINCOS_LENGTH];
|
628
628
|
for (int i = 0; i < SINCOS_LENGTH; i++) {
|
629
|
-
sinLUT[i] = (float) Math.sin(i *
|
630
|
-
cosLUT[i] = (float) Math.cos(i *
|
629
|
+
sinLUT[i] = (float) Math.sin(Math.toRadians(i * SINCOS_PRECISION));
|
630
|
+
cosLUT[i] = (float) Math.cos(Math.toRadians(i * SINCOS_PRECISION));
|
631
631
|
}
|
632
632
|
}
|
633
633
|
|
data/test/deglut_spec_test.rb
CHANGED
@@ -17,10 +17,10 @@ class DeglutTest < Minitest::Test
|
|
17
17
|
(-720..720).step(1) do |deg|
|
18
18
|
sine = DegLut.sin(deg)
|
19
19
|
deg_sin = Math.sin(deg * to_radian)
|
20
|
-
assert_in_delta(sine, deg_sin, 0.
|
20
|
+
assert_in_delta(sine, deg_sin, 0.0003)
|
21
21
|
cosine = DegLut.cos(deg)
|
22
22
|
deg_cos = Math.cos(deg * to_radian)
|
23
|
-
assert_in_delta(cosine, deg_cos, 0.
|
23
|
+
assert_in_delta(cosine, deg_cos, 0.0003)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/vendors/Rakefile
CHANGED
@@ -11,7 +11,7 @@ PROCESSING_GITHUB = 'https://github.com/processing'
|
|
11
11
|
PROPANE_EXAMPLES = 'https://github.com/ruby-processing/propane-examples'
|
12
12
|
VIDEO = 'video.zip'
|
13
13
|
DOWNLOAD = 'releases/download/latest'
|
14
|
-
EXAMPLES = '
|
14
|
+
EXAMPLES = '3.0'
|
15
15
|
HOME_DIR = ENV['HOME']
|
16
16
|
LIBRARY = File.join(HOME_DIR, '.propane', 'libraries')
|
17
17
|
MAC_OR_LINUX = /linux|mac|darwin/.match?(RbConfig::CONFIG['host_os'])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: propane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.8.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- monkstone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +111,7 @@ files:
|
|
111
111
|
- lib/jogl-all-natives-macosx-universal.jar
|
112
112
|
- lib/jogl-all-natives-windows-amd64.jar
|
113
113
|
- lib/jogl-all.jar
|
114
|
-
- lib/propane-3.
|
114
|
+
- lib/propane-3.8.0.jar
|
115
115
|
- lib/propane.rb
|
116
116
|
- lib/propane/app.rb
|
117
117
|
- lib/propane/creators/sketch_class.rb
|
@@ -135,7 +135,6 @@ files:
|
|
135
135
|
- library/library_proxy/README.md
|
136
136
|
- library/library_proxy/library_proxy.rb
|
137
137
|
- library/net/net.rb
|
138
|
-
- library/simplex_noise/simplex_noise.rb
|
139
138
|
- library/slider/slider.rb
|
140
139
|
- library/vector_utils/vector_utils.rb
|
141
140
|
- library/video_event/video_event.rb
|
@@ -151,10 +150,15 @@ files:
|
|
151
150
|
- src/main/java/monkstone/MathToolModule.java
|
152
151
|
- src/main/java/monkstone/PropaneLibrary.java
|
153
152
|
- src/main/java/monkstone/core/LibraryProxy.java
|
153
|
+
- src/main/java/monkstone/fastmath/DegLutTables.java
|
154
154
|
- src/main/java/monkstone/fastmath/Deglut.java
|
155
155
|
- src/main/java/monkstone/fastmath/package-info.java
|
156
156
|
- src/main/java/monkstone/filechooser/Chooser.java
|
157
|
+
- src/main/java/monkstone/noise/Noise.java
|
158
|
+
- src/main/java/monkstone/noise/NoiseGenerator.java
|
159
|
+
- src/main/java/monkstone/noise/NoiseMode.java
|
157
160
|
- src/main/java/monkstone/noise/SimplexNoise.java
|
161
|
+
- src/main/java/monkstone/noise/ValueNoise.java
|
158
162
|
- src/main/java/monkstone/slider/CustomHorizontalSlider.java
|
159
163
|
- src/main/java/monkstone/slider/CustomVerticalSlider.java
|
160
164
|
- src/main/java/monkstone/slider/SimpleHorizontalSlider.java
|