# Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# Blend

Blend[{col1,col2},x]
gives a color obtained by blending a fraction of color col1 and of color col2.

Blend[{col1,col2,col3,},x]
linearly interpolates between colors coli as x varies from 0 to 1.

Blend[{{x1,col1},{x2,col2},},x]
interpolates to give coli when x=xi.

Blend[{col1,col2,},{u1,u2,}]
blends all the coli, using fraction ui of color coli.

Blend[{image1,image2,},]
blends pixel values of 2D or 3D images imagei.

## DetailsDetails

• Blend implements additive color mixing as appropriate for colored light sources or lightgenerating displays.
• In Blend[{col1,,coln},{u1,,un}], the ui are normalized to have total 1. »
• Blend[{col1,col2,}] blends equal fractions of all the coli.
• In Blend[{image1,image2},x], if image1 and image2 are of different dimensions, linear interpolation of the dimensions is used.
• Blend[{image,col},x] blends every pixels of image with the color col.
• In Blend[{image1,col1,,coln,image2},x], coli is interpreted as an image whose dimensions are taken from a linear interpolation between dimensions of image1 and image2.

## ExamplesExamplesopen allclose all

### Basic Examples  (5)Basic Examples  (5)

Blend two colors by fractions:

 In[1]:=
 Out[1]=

Generate an array of blended colors ranging from red to blue:

 In[1]:=
 Out[1]=

Represent the height as a blend from yellow to purple:

 In[1]:=
 Out[1]=

Average two colors equally:

 In[1]:=
 Out[1]=

Blend pixels of an image with a color:

 In[1]:=
 Out[1]=