Created
November 27, 2019 06:21
-
-
Save joshgiesbrecht/b63e902cf99bdfce130f6deaa2aa594e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.core.PApplet; | |
public class UsingProcessing extends PApplet{ | |
public static void main(String[] args) { | |
PApplet.main("UsingProcessing"); | |
} | |
public void settings(){ | |
size(300,300); | |
} | |
public void setup(){ | |
fill(120,50,240); | |
} | |
public void draw(){ | |
ellipse(width/2,height/2,second(),second()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Processing Core framework needs to extend the
processing.core.PApplet
class for the applet.Before I would work on getting that done, I would simply try to invoke
the main method to ensure you have everything linked correctly.
Currently, the code to create synthetic Java interfaces is a lot more
mature than that to create synthetic Java classes, so I would look
around if you can somehow get by with an interface.
Use JAVA:JINTERFACE-IMPLEMENTATION to define an interface:
To create a fully synthetic Java class in Lisp, use
JAVA:JNEW-RUNTIME-CLASS. Not all constructor patterns are supported,
but should be easily accommodated with a little elbow grease.
I haven't tested this code with your problem. If you create a public
repository somewhere, I can help you patch things along.