Eclipse vs PIDE Differences with Color Arrays
in
Programming Questions
•
9 months ago
In the Processing IDE, I can say this:
- color[] colorScheme = { #FFFFFF, #4512AE, #7546D7, #8F6CD7, #472B83, #290671 };
and it compiles. However, I'm using Eclipse now, but I still want to use Processing, so I try and do this:
- int[] colorScheme = { #FFFFFF, #4512AE, #7546D7, #8F6CD7, #472B83, #290671 };
I have to use int because the color keyword only works in PIDE. Anyways, the compiler has a problem with this - it gives a Syntax error on those tokens. What can I do to make this work?
1