math docs
    Preparing search index...

    Function sample

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

      Parameters

      • generator: Permutation

        A generator created with create

      • x: number

        X coordinate

      • y: number

        Y coordinate

      Returns number

      The noise value at (x, y)