honyk <j.tosov...@email.cz> wrote: > I'd like to transform (rotate) my object with the filter > applied to it, but I want to keep my filter without object's > transformation. I ended up with this code. In sum, there are > three rotations (back and forward) to get the desired effect: > http://bilyujezd.cz/other/fePointLight.svg (works in Firefox only) > > Is there a more efficient way? > Is there any workaround to render this effect (sphere-like > object) also in Chrome or Opera? > > Regards, > Jan
I don't use Opera, but this one works in Chrome. <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <radialGradient id="grad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" /> <stop offset="100%" style="stop-color:rgb(80,80,80); stop-opacity:1" /> </radialGradient> </defs> <line x1=115 y1=100 x2=285 y2=100 stroke=red stroke-width=2 /> <circle cx="200" cy="100" r="85" fill="url(#grad1)" opacity=0.5 /> </svg> I've learned more about SVG (and JavaScript for that matter) from http://www.w3schools.com than anywhere else. ------------------------------------ ----- To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/