s2maps-gpu - v0.18.0
    Preparing search index...

    Function interpolate

    • Given two colors, interpolate between them using a t value between 0 and 1. 0 returns color1, 1 returns color2, and anything in between returns a mixture.

      Parameters

      • color1: Color

        first color

      • color2: Color

        second color

      • t: number

        t value between 0 and 1

      Returns Color

      interpolated color