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

Re: reusing gradients and other things

From: Erik Dahlstrom <ed@opera.com>
Date: Wed, 27 Oct 2010 15:39:39 +0200
To: www-svg@w3.org, ddailey <ddailey@zoominternet.net>
Message-ID: <op.vk8lkdabgeuyw5@localhost>
On Tue, 26 Oct 2010 02:08:20 +0200, ddailey <ddailey@zoominternet.net>  

> One of my students just taught me something you all knew but I didn't:  
> namely, you can reuse a gradient:
>   <radialGradient id="r1" cx="50%" cy="90%" r="34%"  fy="80%"  
> spreadMethod="reflect"
>   gradientUnits="objectBoundingBox">
>   ...
>   series of <stop>s
>   ---
>   </radialGradient>
>   <radialGradient id="r2" xlink:href="#r1" spreadMethod="repeat" />
> Is there anything like this for animate tags?

Not at the moment no. Also note that the animate tag has another meaning  
defined for xlink:href.

> How about filters or filter primitives?

Yes, for the <filter> element, see  
http://www.w3.org/TR/SVG11/filters.html#FilterElementHrefAttribute. I  
think the benefit is not that great, and it comes with the cost of  
dependency tracking. The same drawback applies to gradients too.


Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Wednesday, 27 October 2010 13:40:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:29:45 UTC