Re: alpha transparency

Stephane Conversy wrote:

> What happens when 'opacity', 'fill-opacity' and 'stroke-opacity'
> are all set for a particular simple shape ?
> are they composed ?

The 'fill-opacity' property describes the opacity that
is used by the 'fill' property when painting the interior
of a shape.

Similarly, the 'stroke-opacity' property describes the
opacity used by the 'stroke' property when painting the
stroke of a shape.

Object opacity (the 'opacity' property) applies to the
rendering of the entire object.

So if you have something like this:

"fill-opacity: 0.5; fill: green; stroke-opacity: 0.5;
  stroke: red; opacity: 0.5"

you will have a shape that is filled with 50% opaque green
and stroked with 50% opaque red and then composited into
the canvas with 50% opacity.
With object opacity like this, you will end up with 25% opaque
fill and stroke, but it's probably better to remember that
the 'opacity' property applies when compositing the object
(or objects) onto the canvas. So, objects like markers will
be affected by 'opacity' but not by 'fill-opacity' or


Received on Tuesday, 5 December 2000 08:45:27 UTC