← Standard library

Noise

static class Noise
import Noise from Wax;

Deterministic gradient noise and unnormalized octave sums. Coordinates are sampled on an integer lattice; finite coordinate floors must fit int32. These functions are useful for procedural variation, not cryptographic randomness.

Noise.wax:8

Inherits from object. Follow these links for inherited members.

Members

Fademethod

public static fn Fade(float t) : float

Evaluates the quintic 6t^5 - 15t^4 + 10*t^3 without clamping t.

Noise.wax:14

Hashmethod

public static fn Hash(int32 x) : int32

Mixes one integer coordinate into a deterministic 32-bit pattern.

Noise.wax:22

Hash2method

public static fn Hash2(int32 x, int32 y) : int32

Mixes two integer coordinates into a deterministic 32-bit pattern.

Noise.wax:31

Hash3method

public static fn Hash3(int32 x, int32 y, int32 z) : int32

Mixes three integer coordinates into a deterministic 32-bit pattern.

Noise.wax:38

Grad2method

public static fn Grad2(int32 hash, float x, float y) : float

Selects a 2D gradient from hash bits and returns its dot product with the supplied displacement.

Noise.wax:47

Grad3method

public static fn Grad3(int32 hash, float x, float y, float z) : float

Selects a 3D gradient from hash bits and returns its dot product with the supplied displacement.

Noise.wax:60

Perlin2Dmethod

public static fn Perlin2D(float x, float y) : float

Samples smoothly interpolated 2D gradient noise. Supply finite coordinates whose floors fit int32; invalid coordinates panic during lattice conversion.

Noise.wax:74

Perlin3Dmethod

public static fn Perlin3D(float x, float y, float z) : float

Samples smoothly interpolated 3D gradient noise. Supply finite coordinates whose floors fit int32; invalid coordinates panic during lattice conversion.

Noise.wax:99

FBM2Dmethod

public static fn FBM2D(float x, float y, int32 octaves, float lacunarity, float gain) : float

Sums octaves of 2D Perlin noise. Frequency starts at 1 and multiplies by lacunarity; amplitude starts at 1 and multiplies by gain. The sum is not normalized, and nonpositive octaves return zero. Every sampled coordinate must meet Perlin2D bounds.

Noise.wax:138

FBM3Dmethod

public static fn FBM3D(float x, float y, float z, int32 octaves, float lacunarity, float gain) : float

Sums octaves of 3D Perlin noise. Frequency starts at 1 and multiplies by lacunarity; amplitude starts at 1 and multiplies by gain. The sum is not normalized, and nonpositive octaves return zero. Every sampled coordinate must meet Perlin3D bounds.

Noise.wax:157