Skip to main content

PerlinNoise

class PerlinNoise

PerlinNoise presents a wide range of applications, covering, but not limited to: the procedural generation of landscapes, the introduction of pseudorandom variations in a variable and the support in the elaboration of image patterns. Its most frequent implementation occurs in two, three or four dimensions, however it is feasible to establish it for any number of dimensions.


public class PerlinNoise

— Constructors (2) —

ConstructorDescription
PerlinNoise()Creates a new instance of PerlinNoise.
PerlinNoise(float scale)Creates a new instance of PerlinNoise with its scale to be the argument.

— Methods (11) —

NameDescription
void setScale(float scale)Sets the current scale of PerlinNoise.
float getScale()Returns the current scale of PerlinNoise.
double noise(double x, double y)Sets the size of PerlinNoise with the values defined to the arguments.
double noise(double x, double y, double z)Sets the size of PerlinNoise with the values defined to the arguments.
double noise(double x, double y, double z, double w)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(int x, int y)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(int x, int y, int z)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(int x, int y, int z, int w)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(float x, float y)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(float x, float y, float z)Sets the size of PerlinNoise with the values defined to the arguments.
float noise(float x, float y, float z, float w)Sets the size of PerlinNoise with the values defined to the arguments.