go get github.com/cjslep/noise
A small and simple library for generating noise. This library provides Perlin and simplex two dimensional noise generators. It also provides a form of Perlin noise with Catmull-Rom spline interpolation, although it displays visual artifacts in the form of faint gridlines.
The library also provides functionality for noise composed of octaves using a persistence value. The octaves have constant gain and lacunarity.
The following images are generated when running go test
:
Perlin Noise with Catmull-Rom Spline Interpolation:
Perlin Pink Octave Noise with Catmull-Rom Spline Interpolation:
All noise generators implement the Noiser
interface. Please see the
documentation for details.
GPLv3