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 › which jar file contains color
Page Index Toggle Pages: 1
which jar file contains color? (Read 1316 times)
which jar file contains color?
Sep 7th, 2005, 12:37pm
 
Hi all,

I'm porting a project that used an old version of processing (0069), back when you could set the alpha of a BImage using a list of integers. In the new version I guess the way to replicate this is using pixels[] and set() with a color object with an alpha.

The thing is I'm working in eclipse, I have included the core.jar in the build path and am importing PImage and PApplet, all works fine but color cannot be resolved. I can't seem to find color in the core.jar. which jar do I need to include for the color object??

What would be really usefull, I guess, is if the language reference could list which jar each term relies upon.

james

Re: which jar file contains color?
Reply #1 - Sep 7th, 2005, 1:31pm
 
you can still do the same thing in  beta, the function has just changed names from alpha() to mask(): http://processing.org/faq/changes.html

and core.jar contains everything.. color() is a method in PApplet.
Re: which jar file contains color?
Reply #2 - Sep 7th, 2005, 2:03pm
 
Thanks again for your time ben. I will make sure I check the changes faq next time!
Page Index Toggle Pages: 1