Palette<T>: ((index: number) => T)

Type Parameters

  • T

Type declaration

    • (index: number): T
    • Type of an abstract Palette function. NOTE: It is common for applications dealing with Palettes to assume that they are continuous, meaning that when supplied an overflowing index, it will return loop back to start.

      Returns

      Generated item

      Parameters

      • index: number

        Index of item to pick from Palette

      Returns T