Processing, a language for visual output

An open source programming language and environment for people who want to program images, animation, and interactions

It would seem that the computer science world is, in general, populated by firm believers in the idea that you can never have too many programming languages. I've covered all sorts of languages over the centuries I've been writing Gearhead and today I want to discuss a really cool language called Processing.

First I must comment that the only name that would have been worse for the language might have been "Language" or maybe "Program." The authors sort of acknowledge this in the FAQ.

Anyway, to understand Processing you need to understand its predecessor, Design By Numbers (DBN). DBN was created by Professor John Maeda for a specific user community: Visual designers and artists. Maeda notes that "DBN is not a general purpose programming language like C or Java, but was designed to familiarize people with the basic concepts of computational media. Studying DBN is a first step to take -- not a final step."

Maeda cited the advantages of DBN as being free to use and multiplatform, easy to understand with a syntax that is designed for beginners, and immediately accessible on the Web.

As far as I can determine, with the release of Processing, the planned 2003 release of DBN Version 4 was abandoned and development stopped.

So, what is Processing? It is "an open source programming language and environment for people who want to program images, animation, and interactions ... created to teach fundamentals of computer programming within a visual context and to serve as a software sketchbook and professional production tool."

Processing runs on Windows, Mac OS X and Linux, and there are also projects to create a mobile version of the language as well as hardware developments that run close derivatives of the Processing language. The really cool hardware is based on an open source platform called Arduino that has a huge following and scores of subprojects. You can build your own Arduino boards or buy ready-to-run boards from a number of U.S. suppliers.

Underlying the Processing system is Java, so a prerequisite to running the integrated development environment (IDE) is ensuring Java is installed. On OS X Java is installed by default, but the Windows version of Processing includes versions both with and without a Java installer, depending on your circumstances.

Like DBN, Processing was designed primarily for the development of visual output. It consists of an IDE called the Sketchbook (also called the Processing Development Environment, or PDE), in which coding is done. You can enter code under multiple tabs to improve legibility, but there are complexities to this scheme that programmers need to be aware of. When the code is run the Display Window opens, showing the results.

A really great feature of Processing is its support for both 2D and 3D graphics and multiple rendering engines, which include Java2D (the default 2D engine), P2D and P3D (custom graphics engines for 2D and 3D rendering, respectively), and OpenGL (the best choice for 3D performance if you have a video card that supports OpenGL).

The beauty of Processing is that coding is simple and debugging pretty easy. There are libraries for sound functions, video capture and movie creation, serial port input/output, OpenGL functions, DXF and PDF file handling, XML functions and, yes, network services.

Finally, you can export Processing programs as Java applications, which makes Java development much easier. There are a lot of opportunities to use a language like Processing in the IT environment. Let me know what you think of it.

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Mark Gibbs

Network World
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?