Taos API Reference
    Preparing search index...

    Function halton

    • Halton low-discrepancy sequence. Returns the index-th element of the sequence in base base, in the half-open interval [0, 1).

      Useful for sub-pixel jitter offsets (typically base 2 for x, base 3 for y).

      Parameters

      • index: number

        1-based-ish index; passing 0 returns 0. Typical TAA usage offsets by 1 so the first sample is non-zero.

      • base: number

        Prime base; 2 and 3 are the standard pair for 2D distributions.

      Returns number