2. Processing

Preview:

Citation preview

From last time…

• We learned the basic shape and color functions!

• Please see / email me if you have any health concerns (e.g. related to flashing lights or light patterns)

CAP 3032

Processing

Processing: A Programming Handbook!for Visual Designers & Artists!

!Casey Raes, Ben Fry

“[Processing] targets an audience of computer-savvy individuals who are interested in creating

interactive and visual work through writing software but have little or no prior experience.”

Processing: A Programming Handbook!for Visual Designers & Artists!

!John Maeda, MIT Media Laboratory

On Hybrids: “On the one hand they don’t want the programming code to get in the way of their designs… on the other hand, without hesitation

they write sophisticated computer code to discover new visual pathways.”

Installation!http://processing.org/download/

Exploring the IDE!“Integrated Development Environment”

Syntax Basics// Comments, To-dos, and Deactivation

/* Multi-line Comments */

; (semicolon) Statement Terminator!

, (comma)!

Reserved Words (e.g. int, String)!

print(), println() (print line) Print to the Console

Function Basics“functions” vs. “methods”!

functionName(argument1, argument2);

1. either “lowercase” or “camelCase”!

2. arguments are passed in via parentheses!

E.g. size(500, 500); rectMode(CENTER);

Nick Hardemon, ‘Mo Money Mo Problems’

Matt Pearson, Various Projects

Reviewsize() colorMode() point() // comment

background() stroke() line() /* comment */

smooth() fill() rect() rectMode()

print() noStroke() ellipse() ellipseMode()

println() noFill() ; (semicolon) , (comma)

For next time…✓Shiffman, p. 1–29 (Pixels, Processing)!

• Install and explore Processing!

• Respond to my email!

• Final Project explained on Monday