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 & HelpIntegration › Color Type on Netbeans , how to ?
Page Index Toggle Pages: 1
Color Type on Netbeans , how to ?? (Read 450 times)
Color Type on Netbeans , how to ??
Dec 22nd, 2008, 8:53pm
 
i'm trying to mix a video image and a sample that shows an 3d image cells... so i need to know how can use this code line:

color c = img.pixels[loc];  // Grab the color

on Netbeans !!!!!!

Best Regards.

Merry Christmas and Happy New Year !!!!

Re: Color Type on Netbeans , how to ??
Reply #1 - Dec 22nd, 2008, 10:45pm
 
Use int as Type, instead of color.
Re: Color Type on Netbeans , how to ??
Reply #2 - Dec 23rd, 2008, 4:33pm
 
Side note, because I tripped on this when I started:
color c = #BADF0D;
becomes
int c = 0xFFBADF0D;
ie. by default, the color is opaque (FF is the transparency value, 00 = totally transparent, FF = opaque).
Page Index Toggle Pages: 1