Skip to content
Prev 28957 / 63421 Next

Macintosh Transperancy (PR#11511)

Bradley -- please learn the difference between 'transparent' and 
'semi-transparent'/'translucent'.  Your statements only begin to make 
sense for partially opaque colours.  Furthermore, there was a bug in the 
handling of (fully) transparent colours for these pch's what has been 
fixed in R-patched.

Also, the FAQ does ask you to make a bug report _only_ if you 'know for 
certain' what should happen, and here you are saying you would like to be 
able to do something different.  (It also discusses how to make 'wishlist' 
proposals, but you did not follow that and such proposals need to be 
unambiguously documented.)  You had better also 'know for certain' what 
does actually happen with current R versions.

There are several ways to handle semi-transparency, and Paul Murrell and I 
have debated which is the correct one to use.  In the case of pch=21:25 
where there may be two semi-transparent colours to paint, it is pretty 
clear that sensible people expect the two colours to be painted separately 
(they need not even have the same opacity).  If you don't want the border 
to be painted, make it transparent (and use R-patched or later).

Where the issue is less clear-cut is in pch=16 or 19, where the disc does 
have a stroked border of the same colour.  There devices do differ.
So if I do

plot(1, type="n")
points(1,1,pch=16, cex=10, lwd=3, col="#00ffff30")

on pdf() I get a disc of uniform colour and AFAIR on all other devices 
which support transparency give a darker border.  The point being that if 
we paint a fill and then a border in the same semi-transparent colour, 
should the overlap be painted once or twice?  I've not yet convinced Paul 
that we should take a position on what should happen here (and the use of 
anti-aliasing on lines or even fills means that what actually happens on 
some devices is more complicated still--and more complicated again on 
monitors such as mine which have hardware sharpening).

However, if you care you can use pch=21 with a transparent 'col' to 
achieve a uniform disc on all devices.
On Sat, 24 May 2008, Simon Urbanek wrote:

            
How about starting by reading the FAQ and finding out what contributions 
are welcome?