PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Visualization and Graphics
>
Graphics Options & Styling
>
Colors
>
Blend
>
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Color Processing
>
Colors
>
Blend
>
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Directives
>
Colors
>
Blend
>
BUILT-IN MATHEMATICA SYMBOL
ColorData
Lighter
Darker
Opacity
ColorFunction
GrayLevel
Hue
RGBColor
ColorSlider
Interpolation
See Also »
|
Color Processing
Colors
Graphics Directives
Graphics Options & Styling
Plotting Options
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
More About »
Blend
Blend
gives a color obtained by blending a fraction
of color
and
x
of color
.
Blend
linearly interpolates between colors
as
x
varies from 0 to 1.
Blend
interpolates to give
when
.
Blend
blends all the
, using fraction
of color
.
Blend
blends equal fractions of all the
.
MORE INFORMATION
In
Blend
the
are normalized to have total 1.
»
Blend
implements additive color mixing, as appropriate for color light sources or light-generating displays.
EXAMPLES
CLOSE ALL
Basic Examples
(4)
Blend two colors by fractions:
Generate an array of blended colors ranging from red to blue:
Represent the height as a blend from yellow to purple:
Average two colors equally:
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]=
Scope
(5)
Linear interpolation between two colors:
Linear interpolation between two colors and two opacities:
Linear interpolation between multiple colors uniformly:
Linear interpolation between colors at specific values:
Blending colors with equal weights:
Blending colors with specified weights:
Generalizations & Extensions
(1)
Different colors can be given at the single position to generate discontinuity:
Applications
(1)
Use
Blend
to construct a
ColorFunction
from base colors:
Properties & Relations
(7)
The weights are always normalized, so that the sum becomes 1:
The position values are always sorted:
When colors are specified using the same color space, that space is used for interpolation:
When colors are specified using different color spaces, interpolation happens in the RGB space:
Lighter
is a special case of
Blend
:
Darker
is a special case of
Blend
:
ColorData
contains a large number of predefined
Blend
colors called
:
Gradients can be called by their names only:
Polygon
supports equal weight blending of
VertexColors
:
Possible Issues
(1)
Values outside of the 0, 1 range will be clipped:
In plot functions, use
ColorFunctionScaling
to control global scaling of variables:
Neat Examples
(2)
Use
Blend
with plots to generate synthesized textures:
Simulated colors of stars:
SEE ALSO
ColorData
Lighter
Darker
Opacity
ColorFunction
GrayLevel
Hue
RGBColor
ColorSlider
Interpolation
MORE ABOUT
Color Processing
Colors
Graphics Directives
Graphics Options & Styling
Plotting Options
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
New in 6