PokéRogue
    Preparing search index...
    • Interpolates between the two given color objects over the length supplied.

      Parameters

      • color1: Color

        The first Color object.

      • color2: Color

        The second Color object.

      • Optionallength: number

        Distance to interpolate over. Default 100.

      • Optionalindex: number

        Index to start from. Default 0.

      • Optionalhsv: boolean

        Whether to interpolate in HSV. Default false.

      • OptionalhsvSign: number

        Preferred direction for HSV interpolation. 0 is nearest, negative always decreases hue, positive always increases hue. Default 0.

      Returns ColorObject

      An object containing the interpolated color values.