CHAPTERS










An Introduction To Programming With Processing








Chapter: Table of Contents

Table of Contents

arrowWelcome

arrowCourse Outline

arrowTable of Contents

arrowAbout this Guide 
 
arrowHardware and Software Theory   
    What is programming?   

arrowHow does programming relate to hardware and software?   

arrowAbstraction   
    Speed   
    Efficiency   
    Disambiguation   

arrowThe Unique Qualities of a Programming Language   

arrowLower Level Languages and Higher Level Languages   

arrowAn Analysis of a Computer Program   
    Commands   
    Expressions   

arrowA Scalable Software Development Model   
    1. Plan   
    2. Research   
    3. Mockup Designs   
    4.  Data Acquisition: Sourcing the data needed for your project.   
    5. Filter   
    6. Clustering and Data Mining   
    7. Parsing   
    8. Determining Flow of Control through Stepwise Refinement   
    9. Implement, Test and Document. Repeat.   
    10. Deliver   

arrowWhy Learn Programming using Processing?  
    Code for Artists  
    Java Based   
    Open Source   
    PDE   
        Source Code Editor   
        Build Automation Tools   
        Compiler and /or Interpreter  
        Debugger   
    Active Online Community   

arrowHello Processing   
    Install Processing   
    Sketches   

arrowHello World Program 1.0   
    The println() function  
    Syntax and Syntax Errors
    Logical Errors   
    Display Window
    The size() function
    Standardized Coding Practices
        Comments   
        White Space
        Program Notes

arrowVisual Representations of Code    
    The Cartesian Graph and the Processing Coordinate System
    Hello Display Window: Hello World 1.1    
    The text() function   
    Program Notes   
    Formatting Text   
        Color   
    Drawing   
        2D Primitives
        The Origin of an ellipse   
        Aliasing   
    Smile   
        Angles in Processing  
        Editing the smile   
    Adding Eyes   
    Drawing Irregular Shapes   
        Order, order!   
    Finishing the sketch 
        Programming Paradigms  
        Datatyping Categories   
            Primitive Datatypes   
            Processing's API Datatypes  
            User Defined Complex Datatypes
        PImage   

arrowThe Design and Layout Program   
    Program Notes for Interface01.pde  
        The PDE Tools menu   

arrowBeyond Static Sketches and on to Active mode  
    Methods, functions and their contexts   

arrowThe setup() function  

arrowThe draw() function   

arrowExperimentation  

arrowDatatyping   
    Variables   
        Variable Scope   

arrowInteracting with images  
    Friction simulation   
        Variable naming conventions   
    Planning and Pre-Debugging   
    Implementing a Programmatic Solution   
        Constraining Values   

arrowBranching   
    The if() structure   
    Relational Operators   
    Comparison   
    Extending the if() structure with else   
    Extending the if() construct with if else if else   
    Logical Operators   

arrowInterface Controls: Setting up a Slider  

arrowUser Defined Functions   
    Creating a user defined function   
        Datatyping a function    
        Determining a range   
        Returning data from a function   
        Dragging the slider button   
        Setting up regional constraints  
        Finishing the slider   
        Mapping Values   

arrowThe mystery shape maker  

arrowArrays   
    Program Notes   
    Dynamic assignment for elements in an Array   

arrowIterations   

arrowTransforms   
    Transforming Coordinate Space   
    A Convenient Animation System   
    pushMatrix() and popMatrix()   
    What is the Transformation Matrix   
    A Programmatic Solution For Rotating Wheels   

arrowAn Introduction to 3D in Processing   
    3D Primitives   

arrowGuess My Number Game   

arrowObject Oriented Programming   
    The concept of a class   
    The Blueprint Analogy   
    Why use Object Oriented Programming   
    Creating a Class   

arrowA Button Class   
    Class Name   
    Fields   
    Constructor   
    Methods   
    Object Instantiation   

arrowWorking with external data   

arrowSocial Commentary Visualization

arrowAttribution   
    Images  

arrowSource Files Download


















Brought to you by

www.lyndondaniels.com
Lyndon Daniels CC-BY-NC-ND 2012