We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › gradient in svg!
Page Index Toggle Pages: 1
gradient in svg! (Read 1079 times)
gradient in svg!
May 3rd, 2010, 4:30am
 
Hey! so I've been making some works with svg vectors in processing and i have tried some times to use vectors with gradients and never been able to do it.

Now I'm working in a Multi-touch table and when designing the interface, i would like to use some cool gradients on the buttons and stuff.... anyway to use vectors with gradients in Processing? is using an image instead of vector the only way?
Re: gradient in svg!
Reply #1 - May 3rd, 2010, 5:10am
 
http://processing.org/learning/basics/lineargradient.html
http://processing.org/learning/basics/radialgradient.html
http://processing.org/learning/basics/wavegradient.html

does it help?
Re: gradient in svg!
Reply #2 - May 3rd, 2010, 5:38am
 
well not really! but thanks! what i really want is to be able to design my GUI in other programs then use the graphics in processing
Re: gradient in svg!
Reply #3 - May 6th, 2010, 8:30am
 
The SVG gradients doesn't work for me either, even after trying various variants. I think that's because the code to find the gradient data by its ID doesn't work (wrong level?).

I started to work on the shape code to try and make it work. That, and some other improvements, like accepting some (or all?) named colors, short color form (#ABC) and so on.
Actually, I am starting to do important code refactoring, which might be a good or a bad thing.
Good => better code (I hope!).
Bad => too big changes can be rejected by fry & REAS, while incremental improvements have better chances to be accepted...
Page Index Toggle Pages: 1