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 › color class and external editors...
Page Index Toggle Pages: 1
color class and external editors... (Read 851 times)
color class and external editors...
Jan 4th, 2009, 5:06am
 
I'm using netbeans to create a processing game...  I'm using a netbeans processing plug-in ( http://code.google.com/p/netbeans-processing-template/wiki/Installation ), and I use import processing.core.* , but I can't get netbeans to recognize color anywhere, it says it can't find the class, and won't build... any ideas on why it won't recognize it, and how to import or fix it?
Re: color class and external editors...
Reply #1 - Jan 4th, 2009, 11:42am
 
there is no actual color type, it's actually an int. All that happens is that the processing IDE rewrites color to int behind the scenes. It's just a convenience.
Re: color class and external editors...
Reply #2 - Jan 4th, 2009, 12:39pm
 
"Behind the scene" means that Processing has a pre-processor changing the source code on the fly before compiling it. That's also how they add a class around your code and add casts to floats where needed.
Re: color class and external editors...
Reply #3 - Jan 5th, 2009, 9:28pm
 
Thanks guys, I saw that I could use an int, but I thought it was still actually a class.

Much appreciated
Page Index Toggle Pages: 1