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
color import (Read 465 times)
color import
Oct 13th, 2009, 3:16pm
 
Hi, I´m developing a simple game using processing but I use NetBeans, not the Processing IDE. I´m trying to create a variable inside an inner class of my PApplet class of type color, but the IDE complains about not knowing the type. Which package am I supposed to import to use the primitive type color?

Thanks in advance
Re: color import
Reply #1 - Oct 13th, 2009, 5:22pm
 
are you already importing the core.jar?

import processing.core.*;
Re: color import
Reply #2 - Oct 14th, 2009, 12:10am
 
The type color only exists in processing ide, in eclipse or netBeans its just an int:

int cl = color(255,0,0);

There is an article by Daniel Shifmann on how to use processing in eclipse, some parts may be interesting for you (http://processing.org/learning/eclipse/)
Page Index Toggle Pages: 1