Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class Noise

    A facade for the 'simplex-noise' library to provide a consistent API. Provides static methods for Perlin and Simplex noise.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 2D Simplex Noise.

      Parameters

      • x: number

        X coordinate.

      • y: number

        Y coordinate.

      Returns number

      Value between -1.0 and 1.0.

    • 3D Simplex Noise.

      Parameters

      • x: number

        X coordinate.

      • y: number

        Y coordinate.

      • z: number

        Z coordinate.

      Returns number

      Value between -1.0 and 1.0.

    • 2D Simplex Noise.

      Parameters

      • x: number

        X coordinate.

      • y: number

        Y coordinate.

      Returns number

      Value between -1.0 and 1.0.