Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 472 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 472 Bytes

Getting Started

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

// Create and configure FastNoise object
FastNoiseLite noise = new FastNoiseLite();
noise.SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2);

// Gather noise data
float[][] noiseData = new float[128][128];

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

// Do something with this data...