Free Sample
+ Collection

Processing 2: Creative Programming Cookbook

Jan Vantomme

Creative people and professionals will find this book invaluable in getting to know the great new features of Processing 2. From drawing images to webcam interactions, it’s packed with superb recipes that will inspire you.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849517942
Paperback306 pages

About This Book

  • Explore the Processing language with a broad range of practical recipes for computational art and graphics
  • Wide coverage of topics including interactive art, computer vision, visualization, drawing in 3D, and much more with Processing
  • Create interactive art installations and learn to export your artwork for print, screen, Internet, and mobile devices

Who This Book Is For

This book targets creative professionals, visual artists, designers, and students who have a starting knowledge of the Processing Development environment and who want to discover the next level of Processing. Anyone with a creative practice who wants to use computation in their design process. A basic understanding of programming is assumed. However, this book is also recommended to the non-artistic, looking to expand their graphics and artistic skills.

Table of Contents

Chapter 1: Getting Started with Processing 2
Installing Processing on your computer
Exploring the Processing Development Environment
Installing libraries
Installing tools
Switching modes
Understanding the coordinate system
Writing your first Processing sketch
Using math functions
Responding to mouse events
Responding to keyboard events
Chapter 2: Drawing Text, Curves, and Shapes in 2D
Drawing basic shapes
Working with colors
Working with images
Drawing text
Drawing curves
Calculating points on a curve
Drawing custom shapes
Manipulating SVG files
Offscreen drawing
Chapter 3: Drawing in 3D–Lights, Camera, and Action!
Understanding 3D space
Drawing 3D primitives
Using lights
Making polygon soup
Mixing 2D and 3D objects
Drawing triangle and quad strips
Using textures
Using the 3D camera
Chapter 4: Working with Data
Loading text files from the hard drive
Parsing CSV
Parsing XML
Converting datatypes
Working with Strings
Working with arrays
Working with ArrayLists
Working with HashMaps
Chapter 5: Exporting from Processing
Saving images
Exporting applications
Saving PDF files
Calculating PDF sizes
Saving text files
Exporting 3D files
Saving binary files
Chapter 6: Working with Video
Playing a video
Exporting image sequences
Manipulating pixels in a video
Using filters
Controlling the speed of a video
Jumping to a specific frame
Blending video
Chapter 7: Audio Visualization
Importing the Minim library
Playing audio files
Using live audio
Drawing a waveform
Using Fast Fourier Transforms
Audio reactive particles
Creating a drum machine
Creating a synthesizer
Using effects
Chapter 8: Exploring Computer Vision
Using a webcam
Thresholding video
Blob tracking
Color tracking
Installing the OpenCV library
Accessing a webcam with OpenCV
Face detection with OpenCV
Defining the region of interest with OpenCV
Manipulating video with OpenCV
Chapter 9: Exploring JavaScript Mode
Creating your first Processing sketch for the Web
Creating a custom HTML template
Working with fonts
Working with images/SVG files
Creating 3D sketches for the Web
Using Processing.js without the Processing editor
Writing sketches with JavaScript
Using Processing.js with jQuery
Getting started with the Toxiclibs.js library
Chapter 10: Exploring Android Mode
Installing the Android SDK
Running your sketch in the Android Emulator
Running your sketch on an Android device
Accessing screen size and density
Responding to touch interaction
Using the accelerometer
Using the GPS
Creating 3D sketches on Android
Adding an icon to your Android App
Chapter 11: Using Processing with Other Editors
Installing Eclipse
Installing the Processing plugin for Eclipse
Write your first sketch with the Processing Eclipse plugin
Installing the Processing library template in Eclipse
Writing Processing libraries
Installing the Processing tool template
Writing Processing tools
Using Processing with IntelliJ IDEA

What You Will Learn

  • Draw expressive shapes and images in 2D and 3D and get inspiration for your creativity
  • Extend the possibilities with Processing using libraries that help you create interactive computational art
  • Play and control video files using some of the coolest recipes with unmatched techniques
  • Visualize music and even live audio
  • Build basic tools for audio visual performances
  • Interact with computers using a webcam
  • Create Processing sketches for the web using the new JavaScript mode
  • Create interactive applications for your Android devices

In Detail

Processing is probably the best known creative coding environment that helps you bridge the gap between programming and art. It enables designers, artists, architects, students and many others to explore graphics programming and computational art in an easy way, thus helping you boost your creativity.

"Processing 2: Creative Programming Cookbook" will guide you to explore and experience the open source Processing language and environment, helping you discover advanced features and exciting possibilities with this programming environment like never before. You'll learn the basics of 2D and 3D graphics programming, and then quickly move up to advanced topics such as audio and video visualization, computer vision, and much more with this comprehensive guide.

Since its birth in 2001, Processing has grown a lot. What started out as a project by Ben Fry and Casey Reas has now become a widely used graphics programming language.

Processing 2 has a lot of new and exciting features. This cookbook will guide you to explore the completely new and cool graphics engine and video library. Using the recipes in this cookbook, you will be able to build interactive art for desktop computers, Internet, and even Android devices! You don't even have to use a keyboard or mouse to interact with the art you make. The book's next-gen technologies will teach you how to design interactions with a webcam or a microphone! Isn't that amazing?

"Processing 2: Creative Programming Cookbook" will guide you to explore the Processing language and environment using practical and useful recipes.


Read More