Function mixStypColors

  • Mixes two colors.

    Both the weight and the relative opacity of each color determines how much of each color is in the result.

    Parameters

    • color1: StypColor

      First color to mix

    • color2: StypColor

      Second color to mix.

    • weight: number

      A number between 0 and 1. A larger weight indicates that more of color1 should be used, and a smaller weight indicates that more of color2 should be used.

    Returns StypColor

    Mixed color.

Generated using TypeDoc