Use PDEGraphics2D to create Processing vector graphics script files and deploy them in HTML.

To create a PDEGraphics2D instance, pass the constructor an instance of a standard Graphics2D object, together with the size of the canvas to paint:

PDEGraphics2D g= new PDEGraphics2D(Graphics2D g, int w, int h)
or
PDEGraphics2D g= new PDEGraphics2D(Graphics2D g, Dimension d)

Alternatively, pass the component to paint as the input to one of the static paint methods:

PDEGraphics2D g=PDEGraphics2D.paint(Component c);
PDEGraphics2D g=PDEGraphics2D.paint(JComponent c);
PDEGraphics2D g=PDEGraphics2D.paint(Window c);
PDEGraphics2D g=PDEGraphics2D.paint(JApplet c);

The getCode(..) and write(....) methods can then be used to access the generated script and create HTML documents.

Project Activity

See All Activity >

License

GNU Library or Lesser General Public License version 3.0 (LGPLv3)

Follow PDEGraphics2D

PDEGraphics2D Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PDEGraphics2D!

Additional Project Details

Intended Audience

End Users/Desktop

User Interface

Java Swing, Java AWT, Web-based

Programming Language

JavaScript, Java

Related Categories

JavaScript Graphics Software, JavaScript Image Viewers, JavaScript Vector Graphics Software, Java Graphics Software, Java Image Viewers, Java Vector Graphics Software

Registered

2013-04-21