|
Author |
Topic: color is not a dirty word (Read 375 times) |
|
benelek
|
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
|
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
|
Re: color is not a dirty word
« Reply #2 on: Jan 15th, 2003, 1:06am » |
|
thats the one thanx
|
|
|
|
benelek
|
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
|
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
|
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
|
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.
|
|
|
|
|