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
Random colors? (Read 462 times)
Random colors?
May 8th, 2009, 3:59am
 
Hi guys, ive seen a few examples but none seem to do what I want.

I want to be able to make a shape change colours after say 1 second and I want to be able to choose the colours it changes between.

Is this possible?
Re: Random colors?
Reply #1 - May 8th, 2009, 4:27am
 
You can easily change between two colors with lerpColor :
http://processing.org/reference/lerpColor_.html

count up from 0to1 depending on how fast it should change.
Page Index Toggle Pages: 1