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
Bright Colors (Read 467 times)
Bright Colors
Feb 19th, 2010, 12:47pm
 
How can I modify color(random(255),random(255),random(255)) to only return bright colors that work well on a black background?

Thanks!
Re: Bright Colors
Reply #1 - Feb 19th, 2010, 12:54pm
 
this is easier using HSB mode and keeping the saturation and brightness values high.

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

(basically aiming for the bottom of that second image where H is random (the actual colour), S is > 50 and B = 100)

i like pastel colours though, which is just a case of changing all your randoms to random(128, 255)

(note to self - linking to the local copy of your reference is no use to anybody else... fixed now)
Re: Bright Colors
Reply #2 - Feb 19th, 2010, 1:58pm
 
Right on, thanks!
Page Index Toggle Pages: 1