math docs
    Preparing search index...

    Function sample

    • Samples 4D simplex noise, returning a value in the interval [-1, 1].

      The fourth axis is commonly used as time (for animated 3D noise) or as a wrap dimension (map a coordinate around a circle in w for seamless looping).

      Parameters

      • generator: Permutation

        A generator created with create

      • x: number

        X coordinate

      • y: number

        Y coordinate

      • z: number

        Z coordinate

      • w: number

        W coordinate

      Returns number

      The noise value at (x, y, z, w)