Re: reusing gradients and other things

On Tue, 26 Oct 2010 02:08:20 +0200, ddailey <ddailey@zoominternet.net>  
wrote:

> 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.

Cheers
/Erik

-- 
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