Processing (programming language)

From Wikipedia, the free encyclopedia

Processing
Image:Processing-loading-logo.gif
Paradigm object-oriented
Appeared in 2001
Typing discipline strong
Influenced by Design by Numbers, Java, OpenGL, PostScript
OS Cross-platform
License GPL and LGPL
Website processing.org

Processing is an open source project initiated by Casey Reas and Benjamin Fry, both formerly of the Aesthetics and Computation Group at the MIT Media Lab. It is "a programming language and integrated development environment (IDE) built for the electronic arts and visual design communities", which aims to teach the basics of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. One of the stated aims of Processing is to act as a tool to get non-programmers started with programming, through the instant gratification of visual feedback. The language builds on the graphical capabilities of the Java programming language, simplifying features and creating a few new ones.

Contents

[edit] Features

The Processing IDE
The Processing IDE

Processing includes a "sketchbook", a minimal alternative to an IDE for organizing projects.

When programming in Processing all classes defined will be treated as inner classes when the code is translated into pure Java before compiling. This means that the use of static variables and methods in classes is prohibited unless you explicitly tell Processing that you want to code in pure Java mode.

[edit] Hello World

void setup()
{
  println("Hello World!");
}

While this is a valid Hello World program, the following code is a better example of the look and feel of the Processing language.

void setup()
{
 PFont font = loadFont("myfont.vlw");
 textFont(font,20);
}
 
void draw()
{
 text("Hello World!", 30,50);
}


[edit] Related projects

[edit] Wiring

Processing has spawned another project, Wiring, which uses the Processing IDE together with a simplified version of the C programming language as a way to teach artists how to program microcontrollers. There are now two separate hardware projects, Wiring and Arduino, using the Wiring environment and language.

[edit] Mobile Processing

Another spin-off project, Mobile Processing by Francis Li, allows software written using the Processing programming language and environment to run on Java powered mobile devices.

[edit] Processing.js

John Resig has recently ported Processing to JavaScript using the Canvas element for rendering,[1] allowing Processing to be used in modern web browsers without the need for a Java plugin.

[edit] Awards

In 2005 Reas and Fry won the prestigious Golden Nica award from Ars Electronica in its Net Vision category for their work on Processing.

[edit] License

The IDE is licensed under the GNU General Public License.

Processing's 'core' libraries, the code included in exported applications and applets, is licensed under the GNU Lesser General Public License, allowing the programmer to release their original code with their license of choice.

[edit] Name

Originally, Processing had the URL at proce55ing.org, because the "processing" domain was taken. Eventually, however, Reas and Fry acquired the domain. Although the name had a combination of letters and numbers, it was still pronounced "processing". They do not prefer the environment being referred to as "Proce55ing." But, despite the name change, Processing still uses the term "p5" sometimes as a shortened name. However, they specifically use "p5" and not "p55".

[edit] See also

[edit] References

  1. ^ http://ejohn.org/blog/processingjs/

[edit] External links