- From: Jasper van de Gronde <th.v.d.gronde@hccnet.nl>
- Date: Mon, 04 Jul 2011 15:48:55 +0200
- To: www-svg@w3.org
On 03-07-11 14:24, Zdeněk Kedaj wrote: > Hi there, > I need to create many unique gradients in my SVG and I so far the only > way to specify a gradient fill is via url(#gradientId) notation. In > such case I would have to put all my gradients that are used only once > in the defs section, which seems to be a bit cumbersome to me. Is > there some way to define a gradient "inline" upon an element? I would > like to define the gradient properties right in the fill or stroke > attribute, without having to reference its definition in the defs > section. There is no "inline" gradient syntax, but the gradient definition need not necessarily be restricted to the defs section, so you can define the gradient just before where you use it. (I find this to be especially useful when generating SVG.)
Received on Monday, 4 July 2011 13:49:24 UTC