This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Blend

Blend[{col1, col2}, x]
gives a color obtained by blending a fraction 1-x of color col1 and x 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[{col1, col2, ...}]
blends equal fractions of all the coli.
  • In Blend[{col1, ..., coln}, {u1, ..., un}] the ui are normalized to have total 1.  »
  • Blend implements additive color mixing, as appropriate for color light sources or light-generating displays.
Blend two colors by fractions:
In[1]:=
Click for copyable input
Out[1]=
 
Generate an array of blended colors ranging from red to blue:
In[1]:=
Click for copyable input
Out[1]=
 
Represent the height as a blend from yellow to purple:
In[1]:=
Click for copyable input
Out[1]=
 
Average two colors equally:
In[1]:=
Click for copyable input
Out[1]=
New in 6