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.
Pages: 1 2 
nested matrices (Read 1854 times)
Re: nested matrices
Reply #15 - Mar 18th, 2010, 4:56am
 
Export a sketch and have a look at the .java files generated if you really want to see what happens.

I don't know the finer details, but basically everything you put in your sketch's .pde files gets wrapped in to a class.

Code:
public class sketchNameHere extends PApplet { ... } 



This makes all the classes you write inner classes within this class, and I'm not sure if that is the reason you can't have static variables.

You can also have .java files in your sketch to do whatever you like.

See Environment in the Processing Reference; especially notes under:


You can also use the Processing libraries from Eclipse, for example.

Check out Proclipsing for making life in Eclipse a little easier.

-spxl
Pages: 1 2