Skip to content
Tim-BreakPublic

About

A simple 2D noise library. White noise, gradient noise, jittered gradient noise, gradient noise with domain warping, FBM gradient noise, and voronoi noise are implemented.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoiseTB

This is my simple library of two‑dimensional noises and world heightmap generator.
Noises

Noises

1. White Noise

White noise
The following code1 was used to generate this image:
for (int x = 0; x < 1000; x++)
{
    for (int y = 0; y < 1000; y++)
    {
        float value = MathUtilities.To01(Noise.White(x, y, 42));
        // byte pixelValue = (byte)(MathUtilities.FClamp01(value) * 255);
    }
}

Gradient Noise

Gradient noise
The following code1 was used to generate this image:
for (int x = 0; x < 1000; x++)
{
    for (int y = 0; y < 1000; y++)
    {
        float value = MathUtilities.To01(Noise.Gradient(new Vector2(x / 100f, y / 100f), 42));
        // byte pixelValue = (byte)(MathUtilities.FClamp01(value) * 255);
    }
}

Warped Gradient Noise


Jittered Gradient Noise


FBM Gradient Noise


FBM Jittered Gradient Noise


Voronoi Noise


1This code shows how to obtain the noise value at a certain point, but it doesn’t show how to generate an image.

About

A simple 2D noise library. White noise, gradient noise, jittered gradient noise, gradient noise with domain warping, FBM gradient noise, and voronoi noise are implemented.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

Contributors

Languages