MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Is color overlapping possible with Mathematica?


Hello!

I wonder if it's possible to use Mathematica to draw to
overlapping shapes each filled with a different color
and the color in the overlapping region being the 
composition of the two colors but not the color of the
shape on top.  For example, I could do

In[1]:= Show[Graphics[{RGBColor[1.0, 0.0, 0.0], 
                       Polygon[{{0, 0}, {0, 2}, {2, 2}, {2, 0}}]}]];
In[2]:= Show[Graphics[{RGBColor[0.0, 0.0, 1.0], 
                       Polygon[{{1, 1}, {1, 3}, {3, 3}, {3, 1}}]}]];
In[3]:= Show[Out[1],Out[2]];

But the overlapping square area would have the color of Out[2],
RGBColor[0.0, 0.0, 1.0].

What I am looking for is to plot a shape transparent rather than
opaque.

Thank you all!

Xiangdong Liu


  • Prev by Date: Speed up ListPlot3D
  • Next by Date: Re: array generated
  • Previous by thread: RE: Speed up ListPlot3D
  • Next by thread: Re: Is color overlapping possible with Mathematica?