Skip to content

Repository files navigation

Noise library

Installation

go get github.com/cjslep/noise

About

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

Simplex Noise: Simplex Noise

Perlin Noise with Catmull-Rom Spline Interpolation: Perlin Noise with Catmull-Rom Spline Interpolation

Perlin Pink Octave Noise: Perlin Pink Octave Noise

Simplex Pink Octave Noise: Simplex Pink Octave Noise

Perlin Pink Octave Noise with Catmull-Rom Spline Interpolation: Perlin Pink Octave Noise with Catmull-Rom Spline Interpolation

How To Use

All noise generators implement the Noiser interface. Please see the documentation for details.

License

GPLv3

About

Noise generation library in Go

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages