BLEND Function

Blends two colors in the proportion specified by the float parameter.

Syntax

BLEND(color1,color2,float[0,1])

Parameters

Name Required/Optional Data Type Description
color1 Required Numeric The Microsoft Office Visio color index or RGB value of the first color.
color2 Required Numeric The Microsoft Office Visio color index or RGB value of the second color.
float[0,1] Required Float The proportion in which to blend color1 and color2. A real number from 0 to 1 inclusive.

Return Value
RGB

Remarks

The color returned is determined by the relative proportions in which to blend color1 and color2, as specified by the float parameter. For example, if float is 0.25, the color returned is composed 25% of color1 and 75% of color2.

Blend