Function fastLerp

  • Map value to color. Faster than lerp methods because color is represented by rgba array.

    Parameters

    • normalizedValue: number

      A float between 0 and 1.

    • colors: number[][]

      List of rgba color array

    • Optional out: number[]

      Mapped gba color array

    Returns number[]

    will be null/undefined if input illegal.