We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I'd like to use PGraphics in a JavaFX Application, which means my Main-Class cannot extend from PApplet. Is there any example or any chance at all to make usage of PGraphics without instantiating the PApplet-Class? I also tried to runn the PApplet from another class, but it was a mess which didnt seem to work at all.
Thank you
Answers
If you read the javadoc they specify that it may be unsafe to create a PGraphics object using any method other than createGraphics().
As long as JAVA2D renderer is enough for you, apparently PGraphicsJava2D can be used standalone w/o depending on PApplet. :-bd The other renderers crashed on me though. b-(
https://forum.Processing.org/two/discussions/tagged/pgraphicsjava2d