FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   color is not a dirty word
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: color is not a dirty word  (Read 375 times)
benelek

35160983516098 WWW Email
color is not a dirty word
« on: Jan 15th, 2003, 12:42am »

am i doing something wrong here? "error: cannot find class: color [JLS8]"
 
Code:

// colour testing
 
void setup() {
  size(200,200);
  background(255);
}
 
color[] theColours = new color[1]; //line where the error occurs
 
void loop() {
 
}
 
fry


WWW
Re: color is not a dirty word
« Reply #1 on: Jan 15th, 2003, 12:46am »

does "color theColours[]" work instead?
 
the parser is a little on the kludge side
 
benelek

35160983516098 WWW Email
Re: color is not a dirty word
« Reply #2 on: Jan 15th, 2003, 1:06am »

thats the one
 
thanx
 
benelek

35160983516098 WWW Email
Re: color is not a dirty word
« Reply #3 on: Jan 15th, 2003, 1:09am »

hmm... another one. how can i create a function that returns an array of colors?
 
benelek

35160983516098 WWW Email
Re: color is not a dirty word
« Reply #4 on: Jan 15th, 2003, 1:13am »

and how can i create an array of colours with a certain length?
 
ie, the equivalent of:
 
int[] moo = new int[10];
 
but for color. the following doesnt work:
 
color moo[] = new color[10];
 
fry


WWW
Re: color is not a dirty word
« Reply #5 on: Jan 15th, 2003, 2:47am »

would you believe  
 
color moo[] = new int[10];
 
at least until we get things fixed.
 
fry


WWW
Re: color is not a dirty word
« Reply #6 on: Mar 5th, 2003, 10:29pm »

fixed in 0052, which will be available within the next few hours from the download location. let us know if it's still broken.
 
Pages: 1 

« Previous topic | Next topic »