Created
October 31, 2024 17:56
-
-
Save nbogie/67039f6d51f15545fdfc10efe3918339 to your computer and use it in GitHub Desktop.
Example Processing java (for outside of Processing)
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 MyExampleProcessingApp extends PApplet { | |
public static void main(String[] args) { | |
System.out.println("MyExampleProcessingApp main() started"); | |
// The string must match your full class name: | |
PApplet.main(new String[] { "MyExampleProcessingApp" }); | |
} | |
@Override | |
public void settings() { | |
size(800, 600); | |
} | |
@Override | |
public void setup() { | |
} | |
@Override | |
public void draw() { | |
background(255); | |
fill(255, 0, 255); | |
circle(mouseX, mouseY, 100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment