SVG Compositing

Hi,

I have a question to SVG Compositing
(http://www.w3.org/TR/2009/WD-SVGCompositing-20090430). Maybe it's to
late to make bigger changes on the Spec anyway, but wouldn't it be
easier to understand compositing by adding a new tag like <composite>?

This tag could have attributes 'source', 'destination', 'operater' and
other attributes depending on the operator. The handling would be
simular to feComposite
(http://www.w3.org/TR/SVG11/filters.html#feComposite).

Short example:
<svg>
<defs>
  <rect id="rect" width="100" height="100" />
  <circle id="circle" r="50" cx="120" cy="120" />
</defs>

<composite source="url(#rect)" destination="url(#circle)"
operator="src-in" />
</svg>

Of course it should be possible to cascade the composite effects.
This is just a design proposal. It's hard to find examples for the use
of enable-background in the web (beside the wrong test in the test
suite:
http://dev.w3.org/SVG/profiles/1.1F2/test/svg/filters-blend-01-b.svg).
And I don't believe that it will be used more frequently for SVG 2.0 -
with or without Compositing.

Dirk

Received on Tuesday, 13 April 2010 08:21:39 UTC