An implementation of the Perlin Noise algorithm in Dart.

Exposes a single function – perlin2d, which takes the dimensions and the frequency of the noise as well as an optional seed for the RNG.

// This will generate a 100*100 2D array with a random
// Perlin noise.
final noise = perlin2d(width: 10, height: 10, frequency: 10);

The example in example/generate_image.dart creates an image from the generated noise:



View Github