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

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);
}
}
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);
}
}1This code shows how to obtain the noise value at a certain point, but it doesn’t show how to generate an image.