2. processing

13
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)

Upload: joseph-murphy

Post on 03-Jul-2015

48 views

Category:

Education


0 download

TRANSCRIPT

Page 1: 2. Processing

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)

Page 2: 2. Processing

CAP 3032

Processing

Page 3: 2. Processing
Page 4: 2. 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.”

Page 5: 2. Processing

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

Page 6: 2. Processing

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

Page 7: 2. Processing

Exploring the IDE!“Integrated Development Environment”

Page 8: 2. Processing

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

Page 9: 2. Processing

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);

Page 10: 2. Processing

Nick Hardemon, ‘Mo Money Mo Problems’

Page 11: 2. Processing

Matt Pearson, Various Projects

Page 12: 2. Processing

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

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

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

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

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

Page 13: 2. Processing

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

• Install and explore Processing!

• Respond to my email!

• Final Project explained on Monday