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

Opera 9.5 supports this, if you are looking for something to test in.

> In the GeoSym standard, when the various attributes of a feature are
> looked up and evaluated to select a final portrayal image, the color
> of that image is defined by a specific name; that name has to be used
> as is, or else somehow translated from GeoSym into something that SVG
> can understand.  Further, the same color name will refer to one of two
> different RGB values, depending on whether the feature is being viewed
> under day or night conditions.

It's possible to animate the solid-color attribute, does that solve your 
problem?

> My question, my understanding of the underpinnings of SVG being as
> weak as it is, can this color definition method be supported within
> SVG itself, or must the colors first be translated into RGB values
> externally and fed to SVG? 

Depends if the colors are defined in svg already or not, see the <color> 
syntax[2].

Hope this helps
/Erik

[1] http://dev.w3.org/SVG/profiles/1.2T/publish/painting.html#SolidColorElement
[2] http://dev.w3.org/SVG/profiles/1.2T/publish/types.html#DataTypeColor

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed

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

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