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 › Getting the negative int color value
Page Index Toggle Pages: 1
Getting the negative int color value (Read 836 times)
Getting the negative int color value
May 23rd, 2005, 9:42pm
 
in the alpha version println(color(10,20,30)); would return some negative value -1340804 or something, but this seems to have been removed..
I'm asking because BufferedImage's setRGB() requires that value..

is there anybody who can tell me how i could calculate my way to it from R G B values??

-seltar
Re: Getting the negative int color value
Reply #1 - May 23rd, 2005, 11:20pm
 
this works exactly the same in beta. perhaps you typed something wrong?
Re: Getting the negative int color value
Reply #2 - May 23rd, 2005, 11:24pm
 
i must've done that, cause now it all works.. Smiley
thank you so much for the quick response..

-seltar
Page Index Toggle Pages: 1