pixel-data-js
    Preparing search index...

    Function lerpColor32

    • Linearly interpolates between two 32-bit colors using a floating-point weight.

      • This is the preferred method for UI animations or scenarios where high precision is required. It uses the standard a + t * (b - a) formula for each channel.

      Parameters

      • a: Color32

        The starting color as a 32-bit integer (AABBGGRR).

      • b: Color32

        The target color as a 32-bit integer (AABBGGRR).

      • t: number

        The interpolation factor between 0.0 and 1.0.

      Returns Color32

      The interpolated 32-bit color.