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 › Control shape in SVG
Page Index Toggle Pages: 1
Control shape in SVG (Read 477 times)
Control shape in SVG
Dec 7th, 2008, 8:52pm
 
Hi all!

I just loaded a world map in svg format, I used the get.child command to recognise the shape(and for example colour them) but I can't find a way to make them recognisable for a rollover!
Is there a way to do that?
(I need to make an interactive world map, where with the mouse over the different shapes -childs- I have actions like changing colours or animation...)

hope is clear enough!
Thanks
Re: Control shape in SVG
Reply #1 - Dec 8th, 2008, 2:56am
 
I'm working on a similar project and this hack is what you need: http://processing.org/hacks/hacks:picking_color_buffer

Re: Control shape in SVG
Reply #2 - Dec 8th, 2008, 9:07am
 
or use geomerative wich has an a inside-test included (see examples):

http://www.ricardmarxer.com/geomerative/

F
Page Index Toggle Pages: 1