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.
IndexProcessing DevelopmentLibraries,  Tool Development › Piccolo2D library for Processing
Page Index Toggle Pages: 1
Piccolo2D library for Processing (Read 891 times)
Piccolo2D library for Processing
Nov 7th, 2008, 12:38am
 
I have taken advantage of the

Code:

Graphics2D g2 = ((PGraphicsJava2D)g).g2;


hack with PGraphicsJava2D to create a Piccolo2D library for Processing.


Piccolo2D is a scenegraph API based on Java2D:

http://code.google.com/p/piccolo2d


An example is posted in the Piccolo2D issue tracker at

http://code.google.com/p/piccolo2d/issues/detail?id=69

if you would like to follow along.
Re: Piccolo2D library for Processing
Reply #1 - Nov 12th, 2008, 7:11am
 
Example hosted temporarily at

http://www3.shore.net/~heuermh/piccolo_example
Re: Piccolo2D library for Processing
Reply #2 - Nov 12th, 2008, 7:53am
 
Thanks for the example, I was wondering what you library actually do... Smiley

Note: you should serve the .pde file with text/plain content-type, it is unreadable when served with text/html (default) content-type as the newlines are lost.

To do that, you can use .htaccess file.
Page Index Toggle Pages: 1