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 › how to change stroke color in time
Page Index Toggle Pages: 1
how to change stroke color in time (Read 699 times)
how to change stroke color in time
Jun 8th, 2007, 3:12am
 
i want to change the stroke color of a turning shape in time
how can i accomplish this
thanks
Re: how to change stroke color in time
Reply #1 - Jun 8th, 2007, 9:21am
 
just change the color in stroke() ...

http://processing.org/reference/stroke_.html

... according to the current frame or time:

http://processing.org/reference/frameCount.html

http://processing.org/reference/millis_.html

you might want to look at modulo too. use it to wrap values around:

http://processing.org/reference/modulo.html

if you have any specific code you need help with, please post it.

best,
F
Page Index Toggle Pages: 1