Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

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

Search the Archive

Is color overlapping possible with Mathematica?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28917] Is color overlapping possible with Mathematica?
  • From: liu at vtaix.cc.vt.edu (Xiangdong Liu)
  • Date: Fri, 18 May 2001 01:13:21 -0400 (EDT)
  • Organization: Virginia Tech
  • Sender: owner-wri-mathgroup at wolfram.com

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?