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 › Changing through color spectrum
Page Index Toggle Pages: 1
Changing through color spectrum? (Read 795 times)
Changing through color spectrum?
Sep 22nd, 2009, 6:45pm
 
I have a blue-filled circle on the screen.
When pressing a certain key, i want it to transition through the color spectrum up to red, and another back down to blue.
I know how to create key-commands, I am just not sure how to have the circle change colors through the spectrum.
Re: Changing through color spectrum?
Reply #1 - Sep 22nd, 2009, 11:53pm
 
its easy if you switch colormode to HSB. Now you can easily count H up or down to change the colour

http://processing.org/reference/colorMode_.html
Page Index Toggle Pages: 1