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 › Proclipsing and color type
Page Index Toggle Pages: 1
Proclipsing and color type (Read 1407 times)
Proclipsing and color type
Mar 8th, 2010, 3:12am
 
hi, anyone knows how can i use the colot types in proclipsing?¿ Maybe i would have to use the java.awt library but im not sure.

Thanks
Re: Proclipsing and color type
Reply #1 - Mar 8th, 2010, 4:47am
 
the color keyword in processing is just a synonym for int and gets replaced during preprocessing.

not sure what you can do in eclipse. maybe make it a proper Class? do similar preprocessing in the build script? just use int instead?
Re: Proclipsing and color type
Reply #2 - Mar 8th, 2010, 6:50am
 
Short answer: just use "int" instead of "color" for your variables. Easy.

The color() method returns an int value, so you can continue to use that if you wish.

-spxl
Re: Proclipsing and color type
Reply #3 - Mar 9th, 2010, 2:01am
 
That's what i did, thanks for the answers.

Bugs
Page Index Toggle Pages: 1