Skip to content

Instantly share code, notes, and snippets.

@camb416
Last active February 17, 2016 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camb416/8a8ac3bbb7778564ad05 to your computer and use it in GitHub Desktop.
Save camb416/8a8ac3bbb7778564ad05 to your computer and use it in GitHub Desktop.
Instructions on how to create a new processing project in IntelliJ IDEA Community 15

Processing 3.0 in IntelliJ IDEA 15

  • Create new project
  • Java
  • Next
  • Next
  • Finish
  • File > Project Structure
  • Libraries > +
  • /Applications/Processing.app/Contents/Java/core.jar
  • OK
  • OK
  • File > New Java Class
import processing.core.PApplet;

/**
 * Created by cbrowning on 2/17/16.
 */
public class ProcessingExample extends PApplet{
    
    public void settings() {
        // settings method (because you can't set size(int, int)
        // when not in the Processing IDE
        size(200, 100);
    }

    public void setup(){
        // setup method
    }

    public void draw() {
        background(255);
        fill(0);
        ellipse(100, 50, 10, 10);
    }

    static public void main(String args[]) {
        PApplet.main(new String[] { "ProcessingExample" });
    }

}
  • Ctrl-R to run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment