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 datatype not resolved in eclipse
Page Index Toggle Pages: 1
color datatype not resolved in eclipse? (Read 2300 times)
color datatype not resolved in eclipse?
May 12th, 2005, 2:37pm
 
Code:

import processing.core.PApplet;

public class colortesting extends PApplet {

   public void setup() {
         size(100,100);
         color blue = color(0,0,255);
   }
   
   public void draw() {  
   }
}

--
in eclipse gives me the following error :
"color cannot be resolved or is not a type"

i have the processing 0090 libraries working fine in eclipse until i try and use the color datatype. I have tried importing the various versions of PGraphics and also PImage but still got the error. Am I making an obvious mistake or is this a bug?

james
Re: color datatype not resolved in eclipse?
Reply #1 - May 12th, 2005, 2:55pm
 
color -> int
#FFDD99 -> 0xFFDD99

that's something the preprocessor changes when converting the pde's to java for compiling ...

F
Re: color datatype not resolved in eclipse?
Reply #2 - May 12th, 2005, 2:58pm
 
here's a lot of info on using processing as a library (in eclipse, xcode, ...)

http://processing.org/discourse/yabb/YaBB.cgi?board=Integrate;action=display;num=1106256315;start=48

F
Re: color datatype not resolved in eclipse?
Reply #3 - May 12th, 2005, 5:21pm
 
great. thanks fjen!
Page Index Toggle Pages: 1