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 & HelpSyntax Questions › color[] (ALPHA version)
Page Index Toggle Pages: 1
color[] (ALPHA version) (Read 786 times)
color[] (ALPHA version)
Aug 19th, 2005, 4:50am
 
I'm using 0069 alpha version (sorry... this is BETA forum... but Ooº· ALPHA forum is dead?).

With hex array:

Code:

color[] paleta = {#000000, #112233, #FFFFFF};


doesn't give problems, but if I use

Code:

color[] paleta={color(46, 35, 37), color(97, 103, 110), color(159, 81, 79)};


Processing turns java.lang.NullPointerException

Any idea?
Thanks
Re: color[] (ALPHA version)
Reply #1 - Aug 19th, 2005, 6:39am
 
please don't use the alpha version. this code works just fine in the beta release.
Re: color[] (ALPHA version)
Reply #2 - Aug 20th, 2005, 1:04pm
 
Then, c'mon with the BETA (begin the begin Smiley).
Thanks.
Page Index Toggle Pages: 1