You are previewing Processing 2: Creative Programming Cookbook.
O'Reilly logo
Processing 2: Creative Programming Cookbook

Book Description

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.

  • 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

  • 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.

    Table of Contents

    1. Processing 2: Creative Programming Cookbook
      1. Processing 2: Creative Programming Cookbook
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. www.PacktPub.com
          1. Support files, eBooks, discount offers and more
            1. Why Subscribe?
            2. Free Access for Packt account holders
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      7. 1. Getting Started with Processing 2
        1. Introduction
        2. Installing Processing on your computer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Exploring the Processing Development Environment
          1. How to do it...
          2. How it works...
        4. Installing libraries
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Installing tools
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Switching modes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Understanding the coordinate system
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Writing your first Processing sketch
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Using math functions
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Responding to mouse events
          1. How to do it...
          2. How it works...
        11. Responding to keyboard events
          1. How to do it...
          2. How it works...
          3. There's more...
      8. 2. Drawing Text, Curves, and Shapes in 2D
        1. Introduction
        2. Drawing basic shapes
          1. How to do it...
          2. How it works...
        3. Working with colors
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Working with images
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Drawing text
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Drawing curves
          1. How to do it...
          2. How it works...
        7. Calculating points on a curve
          1. How to do it...
          2. How it works...
        8. Drawing custom shapes
          1. How to do it...
          2. How it works...
          3. There's more...
        9. Manipulating SVG files
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Offscreen drawing
          1. How to do it...
          2. How it works...
          3. There's more...
      9. 3. Drawing in 3D–Lights, Camera, and Action!
        1. Introduction
        2. Understanding 3D space
          1. How to do it...
          2. How it works...
        3. Drawing 3D primitives
          1. How to do it...
          2. How it works...
          3. There's more...
        4. Using lights
          1. How to do it...
          2. How it works...
        5. Making polygon soup
          1. How to do it...
          2. How it works...
          3. There's more...
        6. Mixing 2D and 3D objects
          1. How to do it...
          2. How it works...
        7. Drawing triangle and quad strips
          1. How to do it...
          2. How it works...
        8. Using textures
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Using the 3D camera
          1. How to do it...
          2. How it works...
          3. There's more...
      10. 4. Working with Data
        1. Introduction
        2. Loading text files from the hard drive
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Parsing CSV
          1. How to do it...
          2. How it works...
          3. There's more...
        4. Parsing XML
          1. How to do it...
          2. How it works...
        5. Converting datatypes
          1. How to do it...
          2. How it works...
        6. Working with Strings
          1. How to do it...
          2. How it works...
        7. Working with arrays
          1. How to do it...
          2. How it works...
        8. Working with ArrayLists
          1. How to do it...
          2. How it works...
          3. There's more...
        9. Working with HashMaps
          1. How to do it...
          2. How it works...
      11. 5. Exporting from Processing
        1. Introduction
        2. Saving images
          1. How to do it...
          2. How it works...
        3. Exporting applications
          1. How to do it...
          2. How it works...
        4. Saving PDF files
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Calculating PDF sizes
          1. How to do it...
          2. How it works...
        6. Saving text files
          1. How to do it...
          2. How it works...
        7. Exporting 3D files
          1. How to do it...
          2. How it works...
          3. There's more...
        8. Saving binary files
          1. How to do it...
          2. How it works...
          3. There's more...
      12. 6. Working with Video
        1. Introduction
        2. Playing a video
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Exporting image sequences
          1. How to do it...
          2. How it works...
        4. Manipulating pixels in a video
          1. How to do it...
          2. How it works...
        5. Using filters
          1. How to do it...
          2. How it works...
        6. Controlling the speed of a video
          1. How to do it...
          2. How it works...
        7. Jumping to a specific frame
          1. How to do it...
          2. How it works...
        8. Blending video
          1. How to do it...
          2. How it works...
      13. 7. Audio Visualization
        1. Introduction
        2. Importing the Minim library
          1. How to do it...
          2. How it works...
        3. Playing audio files
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Using live audio
          1. How to do it...
          2. How it works...
        5. Drawing a waveform
          1. How to do it...
          2. How it works...
        6. Using Fast Fourier Transforms
          1. How to do it...
          2. How it works...
        7. Audio reactive particles
          1. How to do it...
          2. How it works...
        8. Creating a drum machine
          1. How to do it...
          2. How it works...
        9. Creating a synthesizer
          1. How to do it...
          2. How it works...
        10. Using effects
          1. How to do it...
          2. How it works...
      14. 8. Exploring Computer Vision
        1. Introduction
        2. Using a webcam
          1. How to do it...
          2. How it works...
        3. Thresholding video
          1. How to do it...
          2. How it works...
        4. Blob tracking
          1. How to do it...
          2. How it works...
        5. Color tracking
          1. How to do it...
          2. How it works...
        6. Installing the OpenCV library
          1. How to do it...
          2. How it works...
          3. There's more...
        7. Accessing a webcam with OpenCV
          1. How to do it...
          2. How it works...
        8. Face detection with OpenCV
          1. How to do it...
          2. How it works...
        9. Defining the region of interest with OpenCV
          1. How to do it...
          2. How it works...
        10. Manipulating video with OpenCV
          1. How to do it...
          2. How it works...
      15. 9. Exploring JavaScript Mode
        1. Introduction
        2. Creating your first Processing sketch for the Web
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Creating a custom HTML template
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Working with fonts
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Working with images/SVG files
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Creating 3D sketches for the Web
          1. How to do it...
          2. How it works...
        7. Using Processing.js without the Processing editor
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Writing sketches with JavaScript
          1. How to do it...
          2. How it works...
        9. Using Processing.js with jQuery
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Getting started with the Toxiclibs.js library
          1. Getting ready
          2. How to do it...
          3. How it works...
      16. 10. Exploring Android Mode
        1. Introduction
        2. Installing the Android SDK
          1. How to do it...
          2. How it works...
        3. Running your sketch in the Android Emulator
          1. How to do it...
          2. How it works...
        4. Running your sketch on an Android device
          1. How to do it...
          2. How it works...
        5. Accessing screen size and density
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Responding to touch interaction
          1. How to do it...
          2. How it works...
          3. There's more...
        7. Using the accelerometer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        8. Using the GPS
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Creating 3D sketches on Android
          1. How to do it...
          2. How it works...
        10. Adding an icon to your Android App
          1. How to do it...
          2. How it works...
      17. 11. Using Processing with Other Editors
        1. Introduction
        2. Installing Eclipse
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Installing the Processing plugin for Eclipse
          1. How to do it...
          2. How it works...
          3. There's more...
        4. Write your first sketch with the Processing Eclipse plugin
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Installing the Processing library template in Eclipse
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Writing Processing libraries
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Installing the Processing tool template
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Writing Processing tools
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Using Processing with IntelliJ IDEA
          1. Getting ready
          2. How to do it...
          3. How it works...