LinuxCommandLibrary

processing

TLDR

Launch Processing IDE

$ processing
copy
Run sketch from command line
$ processing-java --sketch=[path/to/sketch] --run
copy
Export as application
$ processing-java --sketch=[path] --export
copy
Build without running
$ processing-java --sketch=[path] --build
copy

SYNOPSIS

processing [options]
processing-java [options] --sketch=path

DESCRIPTION

Processing is a visual programming language and IDE for learning to code in the context of visual arts. It simplifies Java for creative coding.

PARAMETERS

--run

Run the sketch.
--build
Build without running.
--export
Export as application.
--present
Run in presentation mode.
--platform os
Target platform.
--output dir
Output directory.

EXAMPLES

$ # Launch IDE
processing

# Run sketch
processing-java --sketch=/path/to/sketch --run

# Export for all platforms
processing-java --sketch=/path/to/sketch --export

# Build only
processing-java --sketch=/path/to/sketch --build
copy

SKETCH EXAMPLE

$ void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ellipse(mouseX, mouseY, 50, 50);
}
copy

CAVEATS

Requires Java. IDE-focused workflow. Sketches are in ~/sketchbook by default.

HISTORY

Processing was created by Casey Reas and Ben Fry at MIT Media Lab in 2001 for teaching programming in visual context.

SEE ALSO

p5(1), openframeworks(1), java(1)

Copied to clipboard