Skip to content

Instantly share code, notes, and snippets.

@nbogie
Created October 31, 2024 17:56
Show Gist options
  • Save nbogie/67039f6d51f15545fdfc10efe3918339 to your computer and use it in GitHub Desktop.
Save nbogie/67039f6d51f15545fdfc10efe3918339 to your computer and use it in GitHub Desktop.
Example Processing java (for outside of Processing)
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