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.
Page Index Toggle Pages: 1
colormode help (Read 381 times)
colormode help
Jul 10th, 2009, 10:33am
 
hey!
im doing a program wich has got some vectors with colors and i wanted to keep the diferent color areas but change their color. I thought doing it by changing the Hue and Saturation without doing A disableStyles. can someone explain how can i change hue in vectors?
Re: colormode help
Reply #1 - Jul 10th, 2009, 11:35am
 
im not sure if you can change colors without disableStyle. but if the problem is that you only want to change parts of your object and for example not the outline etc. maybe you can use http://processing.org/learning/basics/getchild.html getchild to only change colors in parts of your svg...
Re: colormode help
Reply #2 - Jul 10th, 2009, 12:38pm
 
hmnn :s that's not what im looking for! thats too bad! thanks anyway!
Re: colormode help
Reply #3 - Jul 10th, 2009, 1:16pm
 

maybe take a look at these filters and if you are able to implement them somehow. if you are. let us know i bet its useful for a lot of people :
http://www.jhlabs.com/ip/filters/index.html

there seems to be a special image filter for Hue CHange
you probably have to use images instead of svgs or draw them in a PGrapics object first. dont know.


Hmm maybe another analot way would be do Draw it to a Pgraphics, analyze every single pixel and change the color of it manually.
Page Index Toggle Pages: 1