https://github.com/t4ccer/noisy
C# library for generating various noises
https://github.com/t4ccer/noisy
csharp noise noise-3d noise-generator open-simplex-noise perlin-noise worley-noise
Last synced: 6 months ago
JSON representation
C# library for generating various noises
- Host: GitHub
- URL: https://github.com/t4ccer/noisy
- Owner: t4ccer
- Created: 2020-05-18T12:23:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T09:01:46.000Z (over 5 years ago)
- Last Synced: 2025-03-27T01:21:44.074Z (7 months ago)
- Topics: csharp, noise, noise-3d, noise-generator, open-simplex-noise, perlin-noise, worley-noise
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Noisy
Noisy is c# library for generating noises. At this moment Noisy implements 3D Perlin Noise(can be used as 2D also), Open Simplex Noise(2D and 3D) and WorleyNoise(2D and 3D).
## installation
To use in Your code just install [t4ccer.Noisy](https://www.nuget.org/packages/t4ccer.Noisy) nuget package.## Usage
Getting noise value at point:
```csharp
//2D noise
var value = noise.At(x, y);
//3D noise
var value = noise.At(x, y, z);
```Getting noise value at plane(2d array):
```csharp
var values = noise.AtPlane(x, y, width, height, increment);
//or
var values = noise.AtPlane(x, y, z, width, height, increment);
```Getting noise value at line(1d array):
```csharp
var values = noise.AtLine(x, width, increment);
//or
var values = noise.AtLine(x, y, z, width, increment);
```### Open Simplex Noise 2D
```csharp
var noise = new OpenSimplexNoise2DGenerator();
//or
var noise = new OpenSimplexNoise2DGenerator(seed);
//or
var noise = new OpenSimplexNoise2DGenerator(perm);
```### Open Simplex Noise 3D
```csharp
var noise = new OpenSimplexNoise3DGenerator();
//or
var noise = new OpenSimplexNoise3DGenerator(seed);
//or
var noise = new OpenSimplexNoise3DGenerator(perm);
```### Worley Noise 2D
```csharp
var noise = new WorleyNoise2DGenerator(pointCount, n, minPointX, minPointY, maxPointX, maxPointY);
//or
var noise = new WorleyNoise2DGenerator(pointCount, n, minPointX, minPointY, maxPointX, maxPointY, seed);
```### Worley Noise 3D
```csharp
var noise = new WorleyNoise3DGenerator(pointCount, n, minPointX, minPointY, minPointZ, maxPointX, maxPointY, maxPointZ);
//or
var noise = new WorleyNoise3DGenerator(pointCount, n, minPointX, minPointY, minPointZ, maxPointX, maxPointY, maxPointZ, seed);
```## Contribution
Feel free to add some features or fix bugs