PokéRogue
    Preparing search index...
    • Interpolates between the two given HSV color ranges over the length supplied. The sign parameter controls the direction of hue interpolation: 0 finds the nearest path, a positive value always increases hue, and a negative value always decreases hue.

      Parameters

      • h1: number

        Hue of the first color (0 to 1).

      • s1: number

        Saturation of the first color (0 to 1).

      • v1: number

        Value (brightness) of the first color (0 to 1).

      • h2: number

        Hue of the second color (0 to 1).

      • s2: number

        Saturation of the second color (0 to 1).

      • v2: number

        Value (brightness) of the second color (0 to 1).

      • Optionallength: number

        Distance to interpolate over. Default 100.

      • Optionalindex: number

        Index to start from. Default 0.

      • Optionalsign: number

        Hue interpolation direction. 0 = nearest, positive = always increase, negative = always decrease. Default 0.

      Returns ColorObject

      An object containing the interpolated color values.