PDEGraphics2D

A Java Graphics2D subclass that creates Processing scripts for use in Processing.app or in web-pages using ProcessingJS

Web-deployable vector graphics from standard Java AWT/Swing components.

PDEGraphics2D instances can be passed to the paint methods of AWT/Swing components and will automatically generate Processing code to represent the drawn graphics for all components in the hierarchy.

If access is available to the paint method code, PDEGraphics2D provides mechanisms to add comments and custom-code to the generated scripts.

Sorry, but a more modern browser supporting the HTML5 canvas tag is required to view this content.
Example output of PDEGraphics2D showing graphics generated with Waterloo Scientific Graphics