Hosanna UI API v2.3.0-next
    Preparing search index...

    Function interpolateColors

    • Interpolates between two colors represented as numbers.

      Parameters

      • color1: number

        The starting color as a number.

      • color2: number

        The ending color as a number.

      • p: number

        The interpolation fraction (0 to 1).

      Returns string

      The interpolated hex color string.