I'm using Processing to create animations involving up to several thousand objects. It starts to get slow after about a thousand objects or so, and it's pretty clear why: the compiler has to calculate the position of each object in every frame. I would like to somehow do all of the calculations up front and then just display the resulting frames one after the other. Is there a slick way to do this?
I'll note that I'm coding in Java using the core libraries rather than the IDE, if it helps.
Hi,
I've written some Java programs using the processing.core.* libraries (i.e. I compile them with the Java compiler, not the Processing IDE). I would like to embed this code into a Java applet so that the Processing sketches can be viewed and manipulated with a web browser. Some of the Processing documentation indicates that it is no longer possible to export Processing sketches to a Java applet, but I'm hoping this just means that exporting isn't supported by the Processing IDE. Is it possible to use the Processing libraries in a Java applet? Has someone written something about how to do this?