Last active
November 14, 2015 13:12
-
-
Save oguzgelal/a3df41d5cc11d3798fa1 to your computer and use it in GitHub Desktop.
Processing code when converted into Java
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
public class ExampleFrame extends Frame { | |
public ExampleFrame() { | |
super("Embedded PApplet"); | |
setLayout(new BorderLayout()); | |
PApplet embed = new Embedded(); | |
add(embed, BorderLayout.CENTER); | |
embed.init(); | |
} | |
} | |
public class Embedded extends PApplet { | |
public void setup() { | |
// setup codes goes here | |
} | |
public void draw() { | |
// draw codes goes here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment