BUILT-IN MATHEMATICA SYMBOL

# Blend

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

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

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

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

Blend[{col1, col2, ...}]
blends equal fractions of all the .

## DetailsDetails

• In Blend[{col1, ..., coln}, {u1, ..., un}] the are normalized to have total 1. »
• Blend implements additive color mixing, as appropriate for color light sources or light-generating displays.

## ExamplesExamplesopen allclose all

### Basic Examples (4)Basic Examples (4)

Blend two colors by fractions:

 Out[1]=

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

 Out[1]=

Represent the height as a blend from yellow to purple:

 Out[1]=

Average two colors equally:

 Out[1]=

## See AlsoSee Also

New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »