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 & HelpIntegration › question about color in Eclipse
Page Index Toggle Pages: 1
question about color in Eclipse (Read 804 times)
question about color in Eclipse
Feb 15th, 2010, 8:31am
 
Hi

I imported the core library into Eclipse. However when I tried "color gc = color(3,5,6)" in a PApplet object, it still gave me error "color cannot be resolved to a type". Does anyone know why?

Thanks a lot.

Paul
Re: question about color in Eclipse
Reply #1 - Feb 15th, 2010, 9:19am
 
instead of color, use int
int gc = color(3,5,6);

when compiling a sketch in processing, color is replace by int. more info here.
Page Index Toggle Pages: 1