8000 GitHub - travisfw/make-some-noise: Edit of FastNoise_Java by Auburns, meant to have optimal behavior on GWT and to add features
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Edit of FastNoise_Java by Auburns, meant to have optimal behavior on GWT and to add features

License

Notifications You must be signed in to change notification settings

travisfw/make-some-noise

 
 

Repository files navigation

make-some-noise

An edit of FastNoise_Java by Auburns, improving GWT behavior and adding features.

This is a single-file library, pretty much, for generating various kinds of continuous noise, such as Perlin and Simplex noise. There are separate tests and visualizers used to ensure the noise is doing what it should, but if you want to use this library you really only need to copy Noise.java into your own codebase. If you want to be able to update more easily and don't need to edit this code, you can use a JAR from the Releases tab, or get this as a Maven or Gradle dependency from Maven Central:

For Maven,

<dependency>
  <groupId>com.github.tommyettinger</groupId>
  <artifactId>make_some_noise</artifactId>
  <version>0.2</version>
</dependency>

or for Gradle,

implementation "com.github.tommyettinger:make_some_noise:0.2"

(You may need to change implementation to api or the older compile for some projects.)

But What Can It Do?

Lots of noise stuff! You can construct a Noise object with some initial configuration (it can all be changed later), like the seed, frequency, noise type (the default is SIMPLEX_FRACTAL), and how many octaves to use for fractal noise types. You can do the standard layering of different octaves of noise using the "_FRACTAL" noise types, like SIMPLEX_FRACTAL, PERLIN_FRACTAL, or FOAM_FRACTAL, by specifying more than one octave and possibly setting the fractal type with noise.setFractalType(Noise.FBM). You can use other fractal types, such as BILLOW (which produces more high values with lines of very dark values) and RIDGED_MULTI (which produces mostly low values with fiery streaks of high values); these often look quite different as octaves are added! You can adjust the "lacunarity" and "gain" when using multiple octaves; these affect how much the frequency changes between octaves and how much the contribution changes, respectively. Noise this produces is supposed to always be between -1.0 and 1.0; some bugs are entirely likely when fiddling with lacunarity and gain on some fractal types (especially BILLOW), but as long as lacunarity and gain are their default values, all of the noise types and fractal types should stay in that range.

Previews of Noise Types

All are 2D.

  • VALUE:
    • Preview
  • VALUE_FRACTAL:
    • Preview
  • PERLIN:
    • Preview
  • PERLIN_FRACTAL:
    • Preview
  • SIMPLEX:
    • Preview
  • SIMPLEX_FRACTAL:
    • Preview
  • CELLULAR:
    • Preview
  • WHITE_NOISE:
    • Preview
  • CUBIC:
    • Preview
  • CUBIC_FRACTAL:
    • Preview
  • FOAM:
    • Preview
  • FOAM_FRACTAL:
    • Preview

Some Fractal Type Previews

All are 2D.

  • PERLIN_FRACTAL:
    • FBM
      • Preview
    • BILLOW
      • Preview
    • RIDGED_MULTI
      • Preview
  • SIMPLEX_FRACTAL:
    • FBM
      • Preview
    • BILLOW
      • Preview
    • RIDGED_MULTI
      • Preview
  • FOAM_FRACTAL:
    • FBM
      • Preview
    • BILLOW
      • Preview
    • RIDGED_MULTI
      • Preview

About

Edit of FastNoise_Java by Auburns, meant to have optimal behavior on GWT and to add features

Resources

Licens 4C75 e

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%
0