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
>
Opacity
>
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Color Processing
>
Colors
>
Opacity
>
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Directives
>
Colors
>
Opacity
>
BUILT-IN MATHEMATICA SYMBOL
Three-Dimensional Graphics Directives
Tutorials »
|
RGBColor
GrayLevel
Hue
Transparent
Blend
Specularity
Glow
WindowOpacity
See Also »
|
Color Processing
Colors
Graphics Directives
Graphics Options & Styling
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
More About »
Opacity
Opacity
[
a
]
is a graphics directive which specifies that graphical objects which follow are to be displayed, if possible, with opacity
a
.
Opacity
uses the specified color with opacity
a
.
MORE INFORMATION
Opacity runs from 0 to 1, with 0 representing perfect transparency.
If an opacity
a
object with color
is placed in front of an object with color
, the resulting color will be the blend
.
If red and blue with opacity 0.5 are combined, the result is purple—not black, as it would be with physical monochromatic filters.
»
Opacity
works in both 2D and 3D graphics.
It may take significantly longer to render 3D graphics that involve transparent surfaces.
Graphics that involve transparency may need to be printed as high-resolution bitmaps.
On many computer systems, objects with opacity
a
will appear completely transparent if
a
is too small.
»
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Make a 50% transparent sphere:
Plot a see-through surface:
Overlapping translucent 2D disks:
Make a 50% transparent sphere:
In[1]:=
Out[1]=
Plot a see-through surface:
In[1]:=
Out[1]=
Overlapping translucent 2D disks:
In[1]:=
Out[1]=
Scope
(2)
Larger opacity makes surfaces more opaque:
Opacity
is kept throughout the scope of graphics directives:
Generalizations & Extensions
(2)
Color primitives can be used with
Opacity
:
Directive
can be used to combine colors with opacity:
Applications
(3)
Half-transparent surface:
Use
Opacity
to understand complicated surfaces:
Use
Opacity
to visualize internal structure, in this case two ellipsoidal shells:
Properties & Relations
(6)
Overlapping of translucent red and blue disks results in purple:
Background color can be seen through a transparent object:
Each color primitive supports an extended form which can be used to specify opacity:
Opacity
is used by default to show overlapping fillings:
Opacity
is used for fillings to surface plots:
Opacity
is used in
ParametricPlot
to visualize regions that get covered multiple times:
Possible Issues
(3)
If the opacity is too small, objects will typically render as completely transparent:
Overlapping of multiple translucent objects can generate an opaque result:
If each opacity is too small, any number of elements together will still render as transparent:
Completely transparent objects are still counted for
PlotRange
:
Neat Examples
(1)
Random collection of transparent cylinders:
SEE ALSO
RGBColor
GrayLevel
Hue
Transparent
Blend
Specularity
Glow
WindowOpacity
TUTORIALS
Three-Dimensional Graphics Directives
MORE ABOUT
Color Processing
Colors
Graphics Directives
Graphics Options & Styling
Symbolic Graphics Language
New in 6.0: Graphics Primitives & Directives
New in 6.0: Visualization & Graphics
New in 6