Learning Processing
  • Home
  • About
  • Tutorials
  • Examples
  • Exercises
  • Downloads
  • Errata
  • Buy the Book

Site Map

  • About
  • Buy the Book
  • Downloads
  • Errata
    • Chapter 1
      • Section 1.1, Page 4
    • Chapter 2
      • Example 2-1, p. 27
    • Chapter 3
      • Example 3-6, p.40
      • Exercise 3-7, p. 38
    • Chapter 5
      • Section 5.5, p. 69
      • Section 5.7, page 75
    • Chapter 6
      • Exercise 6-2, p.89
      • Exercise 6-3, p.90
      • Exercise 6-4, p.92
    • Chapter 17
      • Exercise 17-3, p. 308
  • Examples
    • Chapter 1
      • Example 1-1: Stroke and Fill
      • Example 1-2: noFill()
      • Example 1-3: RGB Color
      • Example 1-4: Alpha Transparency
      • Example 1-5: Zoog
    • Chapter 2
      • Example 2-1: Zoog Again
    • Chapter 3
      • Example 3-1: Zoog as dynamic sketch
      • Example 3-2: mouseX and mouseY
      • Example 3-3: Zoog as Dynamic Sketch with Variation
      • Example 3-4: Drawing a Continuous Line
      • Example 3-5: mousePressed and keyPressed
      • Example 3-6: Interactive Zoog?
    • Chapter 4
      • Example 4-1: Variable Declaration and Initialization Examples
      • Example 4-2: Using Variables
      • Example 4-3: Varying Variables
      • Example 4-4: Many Variables
      • Example 4-5: Using System Variables
      • Example 4-6: Ellipse with Variables
      • Example 4-7: Filling Variables with Random Values
      • Example 4-8: Variable Zoog
    • Chapter 5
      • Example 5-1: Conditionals
      • Example 5-2: More Conditionals
      • Example 5-3: Rollovers
      • Example 5-4: Hold Down the Button
      • Example 5-5: Button as Switch
      • Example 5-6: Bouncing Ball
      • Example 5-7: “Bouncing” Color
      • Example 5-8: Square Following Edge, Uses a “State” Variable
      • Example 5-9: Simple Gravity
      • Example 5-10: Zoog and Conditionals
    • Chapter 6
      • Example 6-1: Many Lines
      • Example 6-2: Many Lines with Variables
      • Example 6-3: While Loop
      • Example 6-4: Infinite Loop. Don’t Do This!
      • Example 6-5: Another Infinite Loop. Don’t Do This!
      • Example 6-6: Legs with a For Loop
      • Example 6-7: Local Variables
      • Example 6-8: Lines One at a Time
      • Example 6-9: Simple While Loop with Interactivity
      • Example 6-10: Zoog with Arms
      • Example 6-11: Multiple Zoogs
    • Chapter 7
      • Example 7-1: Defining a Function
      • Example 7-2: Calling a Function
      • Example 7-3: Bouncing Ball with Functions
      • Example 7-4: Using a Function that Returns a Value, Distance
      • Example 7-5: Zoog with Functions
    • Chapter 8
      • Example 8-1: A Car Class and a Car Object
      • Example 8-2: Two Car Objects
      • Example 8-3: Zoog Object
    • Chapter 9
      • Example 9-1: Additional Array Declaration and Creation Examples
      • Example 9-2: Initializing the Elements of an Array One at a Time
      • Example 9-3: Initializing the Elements of an Array All at Once
      • Example 9-4: Using a While Loop to Initialize All Elements of an Array
      • Example 9-5: Using a For Loop to Initialize All Elements of an Array
      • Example 9-6: An Array Operation
      • Example 9-7: An Array Operation Using Dot Length
      • Example 9-8: A Snake Following the Mouse
      • Example 9-9: An Array of Car Objects
      • Example 9-10: Interactive Stripes
      • Example 9-11: Resizing an Array Using Append()
      • Example 9-12: 200 Zoog Objects in an Array
    • Chapter 10
      • Example 10-1: Catcher
      • Example 10-2: Bouncing Ball Class
      • Example 10-3: Bouncing Ball with Intersection
      • Example 10-4: Implementing a Timer
      • Example 10-5: Object-Oriented Timer
      • Example 10-6: Simple Raindrop Behavior
      • Example 10-7: Drops One at a Time
      • Example 10-8: Fancier Looking Raindrop
      • Example 10-9: Using All the Objects in One Sketch
      • Example 10-10: The Raindrop Catching Game
    • Chapter 13
      • Example 13-1: Modulo
      • Example 13-2: Random Number Distribution
      • Example 13-3: Probabilities
      • Example 13-4: Perlin Noise
      • Example 13-5: Polar to Cartesian
      • Example 13-6: Oscillation
      • Example 13-7: Wave
      • Example 13-8: Recursion
      • Example 13-9: Two-Dimensional Array
      • Example 13-10: Two-Dimensional Array of Objects
    • Chapter 14
      • Example 14-1: A Growing Rectangle, or a Rectangle Moving Toward You?
      • Example 14-2: Multiple Translations
      • Example 14-3: A Rectangle Moving Along the Z-Axis
      • Example 14-4: Pyramid Using beginShape(TRIANGLES)
      • Example 14-5: Rectangle Rotating Around Center
      • Example 14-6: rotateZ()
      • Example 14-7: rotateX()
      • Example 14-8: rotateY()
      • Example 14-9: Rotate Around More than One Axis
      • Example 14-10: Pyramid
      • Example 14-11: A Growing Rectangle, using scale()
      • Example 14-12: Rotating One Square
      • Example 14-13: Rotating Another Square
      • Example 14-14: Rotating Both Squares
      • Example 14-15: Rotating Many Things Using Objects
      • Example 14-16: Simple Solar System
      • Example 14-17: Nested Push and Pop
      • Example 14-18: Object-Oriented Solar System
    • Chapter 15
      • Example 15-1: “Hello World” Images
      • Example 15-2: Image “Sprite”
      • Example 15-3: Swapping Images
      • Example 15-4: Image Sequence
      • Example 15-5: Setting Pixels
      • Example 15-6: Setting Pixels According to Their 2D Location
      • Example 15-7: Displaying the Pixels of an Image
      • Example 15-8: Adjusting Image Brightness
      • Example 15-9: Adjusting Image Brightness Based on Pixel Location (Flashlight Effect)
      • Example 15-10: Brightness Threshold
      • Example 15-11: Brightness Threshold with Filter
      • Example 15-12: Pixel Neighbor Differences (edges)
      • Example 15-13: Sharpen with Convolution
      • Example 15-14: “Pointillism”
      • Example 15-15: 2D Image Mapped to 3D
    • Chapter 16
      • Example 16-1: Display Video
      • Example 16-2: Manipulate Video Image
      • Example 16-3: Adjust Video Brightness
      • Example 16-4: Display QuickTime Movie
      • Example 16-5: Scrubbing Forward and Backward in a Movie
      • Example 16-6: Drawing a Grid of Squares
      • Example 16-7: Video Pixelation
      • Example 16-8: Brightness Mirror
      • Example 16-9: The Scribbler
      • Example 16-10: The Scribbler Mirror
      • Example 16-11: Simple Color Tracking
      • Example 16-12: Simple Background Removal
      • Example 16-13: Simple Motion Detection
      • Example 16-14: Overall Motion
    • Chapter 17
      • Example 17-1: Simple Displaying Text
      • Example 17-2: Text Align
      • Example 17-3: Scrolling Headlines
      • Example 17-4: Text Mirror
      • Example 17-5: Rotating Text
      • Example 17-6: Text Breaking Up
      • Example 17-7: Boxes Along a Curve
      • Example 17-8: Characters Along a Curve
    • Chapter 18
      • Example 18-1: User Input
      • Example 18-2: Graphing Comma-Separated Numbers from a Text File
      • Example 18-3: Creating Object from a Text File
      • Example 18-4: Loading and Saving Data to Text File
      • Example 18-5: Parsing Yahoo’s XML Weather Feed Manually
      • Example 18-6: Analyzing King Lear
      • Example 18-7: Loading a URL with simpleML
      • Example 18-8: Loading XML with simpleML
      • Example 18-9: Using Processing’s XML Library
      • Example 18-10: A Yahoo Search
      • Example 18-11: Yahoo Search Visualization
    • Chapter 19
      • Example 19-1: Simple Therapy Server
      • Example 19-2: Simple Therapy Client
      • Example 19-3: Server Broadcasting a Number (0-255)
      • Example 19-4: Client Reading Values as Background Color
      • Example 19-5: Client Reading Values as Rotation Value
      • Example 19-6: Multi-User Server
      • Example 19-7: Client for Multi-User Whiteboard
      • Example 19-8: Reading from Serial Port
      • Example 19-9: Handshaking
      • Example 19-10: Serial Communication with Strings
    • Chapter 20
      • Example 20-1: Simple Sound with Video Library
      • Example 20-2: Doorbell with Sonia
      • Example 20-3: Doorbell with Minim
      • Example 20-4: Manipulating Sound (with Sonia)
      • Example 20-5: Live Input with Sonia
      • Example 20-6: Sound Threshold with Sonia
      • Example 20-7: Sound Events (Double Threshold) with Sonia
    • Chapter 21
      • Example 21-1: Basic PDF
      • Example 21-2: PDF Using beginRecord()
      • Example 21-3: Multiple Frames into One PDF
      • Example 21-4: PDF and OpenGL
      • Example 21-5: Making a QuickTime Movie
    • Chapter 22
      • Example 22-1: Inheritance
      • Example 22-2: Polymorphism
    • Chapter 23
      • Example 23-1: Using java.util.Random Instead of random()
      • Example 23-2: Simple Particle System with ArrayList
      • Example 23-3: Using a java.awt.Rectangle Object
      • Example 23-4: Super Fancy ArrayList and Rectangle Particle System
  • Exercises
    • Chapter 1
      • Exercise 1-1
      • Exercise 1-2
      • Exercise 1-3
      • Exercise 1-4
      • Exercise 1-5: Guess colors
      • Exercise 1-6: Guess colors
    • Chapter 3
      • Exercise 3-3: Background in setup() vs. draw()
      • Exercise 3-4: Complete Zoog
      • Exercise 3-7: Continous Line with Varying Thickness
    • Chapter 4: Variables
      • Exercise 4-4: Recreate screenshots
      • Exercise 4-5: Width and Height System Variables
    • Chapter 5
      • Exercise 5-6: Fading Squares
      • Exercise 5-8: Boolean start
    • Chapter 6: Loops
      • Exercise 6-1a: while loop
      • Exercise 6-1b: while loop
      • Exercise 6-2a: for loop
      • Exercise 6-2b: for loop
      • Exercise 6-5: One line at a time
      • Exercise 6-8: Nested for loop
    • Chapter 7: Functions
      • Exercise 7-7: Function Calls
      • Exercise 7-8: Temperature Converter Function
    • Chapter 8: Objects
      • Exercise 8-2: The “Human” Class
      • Exercise 8-5: Gravity ball objects
    • Chapter 9: Arrays
      • Exercise 9-6: Array Operations
      • Exercise 9-7: Snake as object
    • Chapter 17: Text
      • Exercise 17-3: Duplicate Strings
      • Exercise 17-5: Text Next to Bouncing Ball
  • Home Page
  • Site Map
  • Tutorials
    • Basics: Coordinate System and Shapes
    • Color
    • Libraries
    • PHP
      • PHP Persistence
    • Processing in Eclipse
    • Sandbox
    • SimpleML
    • Yahoo Search API
©2008 Daniel Shiffman | Site Map