Skip to content

JRuby Wrapper for OpenSimplex2 (Fast and Smooth) with classic and terrain options

License

Notifications You must be signed in to change notification settings

monkstone/RubyOpenSimplex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Travis CI

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:-

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

About

JRuby Wrapper for OpenSimplex2 (Fast and Smooth) with classic and terrain options

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published