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 › need to constantly change colors.
Page Index Toggle Pages: 1
need to constantly change colors. (Read 517 times)
need to constantly change colors.
Mar 22nd, 2007, 4:54pm
 
hi im looking for backgrounds and ellipses to constantly fluxuate in colors..can anyone help ??cheers
Re: need to constantly change colors.
Reply #1 - Mar 23rd, 2007, 10:17am
 
here's a simple method

Code:
boolean a = true;

void setup()
{
size(200, 200);
stroke(255);
frameRate(30);
}

void draw()
{
if(a == true)
{
ellipse(56, 46, 55, 55);
fill(random(0,255), random(0,255), random(0,255));
}
}
Page Index Toggle Pages: 1