On Tue, 21 Sep 2010 10:49:01 -0700, Jacob Beard <[email protected]>
wrote:
> Hi Charles,
>
> I tried what you suggested, and it seems to give me a hard edge
> between the violet and red regions. I'm not sure why it does this
> though, as it seems to me that it should transition smoothly from
> violet to red.
My guess is that your browser is following the spec and forcing your 1.1
offset back to 1... (I use Opera, which doesn't seem to do that. I like it
that way, whatever the spec says, so I guess I'll ask if there is a good
reason not to change the spec...)
> To resolve this, I tried changing the x2 attribute to
> 1.1, but that did not seem to have an effect. Perhaps you could post
> your code.
No, because I just did it live and then trashed it again :( I could
regenerate it if you like.
Maybe you could have a gradient that goes
0 red
.15 orange
.3 yellow
.45 green
.6 blue
.7 indigo
.8 violet
1 red
and then do a transform="scale(1.25)" to have it finish on the violet.
(I confess I am thinking out loud in a moment - if I get a quarter hour
later I will try it in code...)
cheers
> I'm now trying to achieve a similar effect with radial gradients.
> Unfortunately, I haven't been able to think of a way to do this using
> SMIL, as I can't seem to find a way to express the notion of moving a
> gradient stop to the center of the radial gradient [...]
I'm working offline now so can't check. But what about animating the
colours in each stop? It's not so elegant, but...
--
Charles McCathieNevile Opera Software, Standards Group
je parle français -- hablo español -- jeg lærer norsk
http://my.opera.com/chaals Try Opera: http://www.opera.com
------------------------------------
-----
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:
[email protected]
[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/