Run an applet as a method
in
Programming Questions
•
2 years ago
I want to be able to run a processing application by calling a method so I can pass a variable and do something with it.
For example, I want to be able to call a DrawText applet by passing as a variable the text I want it to be displayed.
I managed to run the applet by creating the PApplet.main method but when I call that method a new instance of the application is created so I cannot modify any variables.
Any suggestions?
For example, I want to be able to call a DrawText applet by passing as a variable the text I want it to be displayed.
I managed to run the applet by creating the PApplet.main method but when I call that method a new instance of the application is created so I cannot modify any variables.
Any suggestions?
1