@openpv/simshady
    Preparing search index...

    Function interpolateTwoColors

    • Creates a color map function that interpolates between two colors. Use colormaps in the ShadingScene.addColorMap method to define the colors of the returned Three.js geometry.

      Parameters

      • colors: { c0: Color; c1: Color }

        The input colors.

        • c0: Color

          The starting color.

        • c1: Color

          The ending color.

      Returns ColorMap

      A function that takes a value t (0 to 1) and returns an interpolated color.