Skip to content

EinScott/FastNoise_Beef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastNoise Lite for Beef

A port of the FastNoise Lite noise generation library for the Beef programming language.

Features

  • 2D & 3D
  • OpenSimplex2 Noise
  • OpenSimplex2S Noise
  • Cellular (Voronoi) Noise
  • Perlin Noise
  • Value Noise
  • Value Cubic Noise
  • OpenSimplex2-based Domain Warp
  • Basic Grid Gradient Domain Warp
  • Multiple fractal options for all of the above
  • Supports floats and/or doubles

Getting started

Here's an example for creating a 128x128 array of OpenSimplex2 noise

// Create and configure FastNoise object
let noise = scope FastNoiseLite();
noise.SetNoiseType(.OpenSimplex2);

// Gather noise data
float[] noiseData = new float[128 * 128];
int index = 0;

for (int y = 0; y < 128; y++)
{
    for (int x = 0; x < 128; x++)
    {
        noiseData[index++] = noise.GetNoise(x, y);
    }
}

// Do something with this data...

delete noiseData;

Documentation

See the original README and Wiki for more info on how to use it (note that the wiki is written for c++).