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 › Eclipse problem
Page Index Toggle Pages: 1
Eclipse problem (Read 2897 times)
Eclipse problem
Jan 6th, 2010, 10:52am
 
Hello everyone!
I'm writing a program in eclipse, using processing library and openCV.
The goal is to create an interactive game with shadows.
The problem is: I need to acces pixels of an image and compare the brightness values to a threshold. BUT... Everything from openCV and processing works just fine in eclipse, but whenever I try to use processings class color, I got this error: "color cannot be resolved to a type"

does't matter how I use it, or where.
color c1 = color(204, 153, 0);
color c1;


Naturally I did....
import processing.core.*;
and I added core.jar to build path.
Re: Eclipse problem
Reply #1 - Jan 6th, 2010, 1:58pm
 
See cant find "color" variable type
'color' in Processing isn't a real type, it is substituted by the pre-processor to 'int'.
Re: Eclipse problem
Reply #2 - Jan 7th, 2010, 2:20am
 
thank you!
Page Index Toggle Pages: 1