https://github.com/monkstone/rubyopensimplex
JRuby Wrapper for OpenSimplex2 (Fast and Smooth) with classic and terrain options
https://github.com/monkstone/rubyopensimplex
noise-generator ruby
Last synced: 10 months ago
JSON representation
JRuby Wrapper for OpenSimplex2 (Fast and Smooth) with classic and terrain options
- Host: GitHub
- URL: https://github.com/monkstone/rubyopensimplex
- Owner: monkstone
- License: gpl-3.0
- Created: 2021-03-31T07:45:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T07:11:45.000Z (about 5 years ago)
- Last Synced: 2024-12-29T17:46:12.113Z (over 1 year ago)
- Topics: noise-generator, ruby
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RubyOpenSimplex
JRuby Wrapper for OpenSimplex2 (Fast and Smooth) with classic and terrain options
Original java implementation files ported from https://github.com/KdotJPG/OpenSimplex2 by KDotJPG (Kurt Spencer)

NB: SimplexNoise by convention generates values in range `-1.0..1.0` cf Perlin Noise `0..1.0`
To build:-
clone repository then use `rake` to run tasks, and you are done! Create a gem if you want...
Usage:-
```ruby
require_relative "../ruby_noise-#{version}.jar"
Java::Monkstone::NoiseLibrary.new.load(JRuby.runtime, false) # load the module
class YourClass
include FastNoise
# include SmoothNoise
def your_method
noise(args..) # use one to four Numeric args
# tnoise(args..) # use two to four Numeric args
...
end
end
```