Processing 2: Creative Programming Cookbook
Formats:

save 63%!
save 37%!

Also available on: |
![]() ![]() ![]() ![]() ![]() |
- 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
Book Details
Language : EnglishPaperback : 306 pages [ 235mm x 191mm ]
Release Date : September 2012
ISBN : 1849517940
ISBN 13 : 9781849517942
Author(s) : Jan Vantomme
Topics and Technologies : All Books, Other, Cookbooks, Open Source
Table of Contents
PrefaceChapter 1: Getting Started with Processing 2
Chapter 2: Drawing Text, Curves, and Shapes in 2D
Chapter 3: Drawing in 3D–Lights, Camera, and Action!
Chapter 4: Working with Data
Chapter 5: Exporting from Processing
Chapter 6: Working with Video
Chapter 7: Audio Visualization
Chapter 8: Exploring Computer Vision
Chapter 9: Exploring JavaScript Mode
Chapter 10: Exploring Android Mode
Chapter 11: Using Processing with Other Editors
Index
- Chapter 1: Getting Started with Processing 2
- Introduction
- 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
- Introduction
- 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!
- Introduction
- 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
- Introduction
- 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
- Introduction
- Saving images
- Exporting applications
- Saving PDF files
- Calculating PDF sizes
- Saving text files
- Exporting 3D files
- Saving binary files
- Chapter 6: Working with Video
- Introduction
- 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
- Introduction
- 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
- Introduction
- 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
- Introduction
- 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
- Introduction
- 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
- Introduction
- 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
Jan Vantomme
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 1 submitted: last submission 28 Feb 2014Errata type: Code | Page number: 81 | Errata Date: 7/11/12
The function textureMode( NORMALIZED );
should be
textureMode( NORMAL );
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- 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
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.
A cookbook with a broad sweep of the topic, through lots of practical and useful recipes that are fun to read and do.
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.