http://www.processing.org/faq.html#java The main rule when using Java code: You cannot use most of the AWT or Swing (which is built on the AWT), because it will interfere with the graphics model. If you want to add scroll bars and buttons to your projects, you should make them
(
Read more... )
Comments 4
I've played around with Processing before and it's fun and pretty easy to do a lot with. Swing and AWT definitely do suck.
Could you just use some sort of AJAX? jQuery or DOJO or something?
Reply
...of course, this was from a codebase about three years ago, so I don't know how much better it is these days.
-kevin
Reply
I did find Processing fairly novice-friendly (as I was able to cut to
"let me draw some double-buffered animated graphics" without learning a lot of setup)
http://www.soe.ucsc.edu/~mds/chaos_playing1/applet/
Reply
Turns out there are two pieces of magic
Existing "draw to the screen" code is easy enough to port, using
the "getGraphics" method on the image you just made to make a graphics context.
gOffscreen.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
Also : http://www.soe.ucsc.edu/~mds/cclsim
Reply
Leave a comment