2D Amortized Noise Performance Evaluator
A Program to Evaluate the Performance of Amortized Noise
 All Classes Files Functions Variables Macros Pages
Functions
perlin.h File Reference

Header file for 2D Perlin noise functions. More...

Go to the source code of this file.

Functions

void initPerlin2D ()
 Initialize gradient and permutation tables.
 
float PerlinNoise2D (float, float, float, float, int)
 Generate a cell of 2D Perlin noise.
 

Function Documentation

float PerlinNoise2D ( float  x,
float  y,
float  alpha,
float  beta,
int  n 
)

Compute turbulence, also known as 1/f noise.

Parameters
xX coordinate.
yY coordinate.
alphaPersistence.
betaLacunarity.
nSide of square grid.
Returns
Scale factor required to bring it down to range [-1, 1].