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 & HelpOther Libraries › Candy SVG texture image
Page Index Toggle Pages: 1
Candy SVG texture image? (Read 432 times)
Candy SVG texture image?
Mar 14th, 2008, 7:04am
 
Is it possible to map a texture (jpg) onto an SVG object? I've been trying to do it by using ignoreStyles();

something like this:

  Code:

beginShape();
texture(txtur);
m.draw(x,y,((s*m.width)/80),((s*m.height)/80));
endShape();
Re: Candy SVG texture image?
Reply #1 - Mar 15th, 2008, 3:17am
 
nope, there isn't a good way to do it because svg files are hierarchies of objects (rather than a single object that can be manipulated).

future versions of the svg library will let you get the geometry yourself, so that you can do this sort of thing.
Re: Candy SVG texture image?
Reply #2 - Mar 15th, 2008, 6:27pm
 
aha. thank you for the info.
Page Index Toggle Pages: 1