--- In [email protected], Erik Dahlström <[EMAIL PROTECTED]> wrote:
>
> On Thu, 04 Sep 2008 13:20:06 +0200, markdyson.13441 <[EMAIL PROTECTED]> wrote:
> 
> > This is a follow-up to a question I asked several weeks ago.
> > Apologies for the delay, I had medical issues.
> >
> > The question was whether SVG supported name aliases for color
> > definition, and I was shown there is indeed an existing list of such
> > named colors.  I think what I'm driving at goes a bit deeper; an
> > example might be best.
> 
> SVG 1.2 Tiny allows this, see the spec[1] (and if you scroll down a
bit from there, there's even a complete example of how to use it).
> 
> In a <solidColor> element you can set the 'solid-color' attribute to
whatever color you need using the normal svg syntax for colors, and by
giving the <solidColor> element an id you can reference this as a
paintserver, just like a gradient, e.g url(#mycolor).
> 

Actually, <solidColor> defines a paint server, which, strictly
speaking, is not the same as a color keyword. You can reference a
paint server in the fill and stroke properties of a shape element. But
color keywords can also be used in a gradient as the stop-color of a
stop element. This is a place where you need to specify a color and a
paint server is not an allowed value.

On another note, it's possible to use a gradient with just one color
for the whole range as a substitute for <solidColor>. This wouldn't
require an SVG 1.2 viewer.


Regards
  Frank


------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to