Giter Club home page Giter Club logo

noisy's Introduction

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 nuget package.

Usage

Getting noise value at point:

//2D noise
var value = noise.At(x, y);
//3D noise
var value = noise.At(x, y, z);

Getting noise value at plane(2d array):

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):

var values = noise.AtLine(x, width, increment);
//or
var values = noise.AtLine(x, y, z, width, increment);

Open Simplex Noise 2D

var noise = new OpenSimplexNoise2DGenerator();
//or
var noise = new OpenSimplexNoise2DGenerator(seed);
//or
var noise = new OpenSimplexNoise2DGenerator(perm);

Open Simplex Noise 3D

var noise = new OpenSimplexNoise3DGenerator();
//or
var noise = new OpenSimplexNoise3DGenerator(seed);
//or
var noise = new OpenSimplexNoise3DGenerator(perm);

Worley Noise 2D

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

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

noisy's People

Contributors

t4ccer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lukewebbjacobs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.