ps1
    Preparing search index...

    Function lerpColor

    • Perform linear interpolation between RGB colors, [r,g,b] tuples of integers 0 <= r,g,b <= 255.

      Parameters

      • c0: Color

        initial RGB color

      • c1: Color

        final RGB color

      • t: number

        parameter 0 <= t <= 1

      Returns Color

      the RGB color whose components are linearly interpolated between corresponding components of c0 and c1 with parameter t, rounded to the nearest integer (half up)