Skip to main content

Overview

This function combines two colors using linear interpolation based on a specified percentage.

Parameters

blendColor(color1, color2, percent)
  • Color 1: First color to blend.
  • Color 2: Second color to blend.
  • Percent: Blend percentage (0-1, where 0 is fully color1 and 1 is fully color2).

Example

blendColor(red, blue, 0.5)
Returns purple color (50% blend of red and blue).
I