W3C home > Mailing lists > Public > www-svg@w3.org > April 2010

SVG Compositing

From: Dirk Schulze <vbs85@gmx.de>
Date: Tue, 13 Apr 2010 10:14:25 +0200
To: www-svg@w3.org
Message-ID: <1271146465.3599.16.camel@dirk-laptop>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:44 GMT