作者:empty 页数:736 出版社:empty |
If you want to create rich interactive experiences with your art-work, designs, or prototypes using electron ies and programming.this is the place to start.Programming Interactivity helps youexplore important themes in interactive art and design:2Dand3Dgraphics, sound, physical interaction, computer vision, geolocation,and much more, This book also examines cutting-edge techniquesfor interaction dle sign, and includes discussions with leading artistsand designers on proje ets and theory-Previous programming experience, while help fu, is not required.The book covers some of the basics of programming and e lee tricalengineering, and provides a complete introduction to three freelyava able tools ere ated specif e ally for artists and design ens.Processing, a Java-based programming language and
m Arduino, a system that integrates a microcomputerprototyping board, IDE, and programming language forcreating your own hardware and controlsm open Frameworks, a coding framework for designersand artists that uses the powerful C++programminglanguageInside, you'll find working code samples you can use right away,along with the background and technical information you needto design, program, build, and troubleshoot your own projects.Youll finish this book knowing howto design interaction andincorporate software and electronics into your projects.INTRODUCTORYINTERMEDIATEADVANCED
Part l.Introductions
1.Intro du ing Interaction Design.
What This Book Is for
Programming for Interactivity
The Nature of Interaction
Messages and Interaction
Inter t aces and Interaction
Languages of Interaction
Design and Interaction
Art and Interaction
Data Exchange and Exploration
Working Process
2.Programming Basics.
The Basics of a Processing Application
Why You lI Read This Chapter More Than Once
The Nature of Code
Var ables
Simple Types
Arrays
Casting
Operators
Control Statements
ifthen
for Loop
while Loop
continue
break
Functions
Defining a Fun e tion
Passing Parameters to a Method
Some Suggestions on Writing Functions
Overloading Functions
Objects and Properties
Scope
Review
3.Processing.
Downoad ing and In saling Process ig
Exploring the Processing IDE
The Basics of Drawing with Processing
These t up 0 Method
The draw 0 Method
There c tO.ellipse 0.and line 0 Methods
RGB Versus Hexadecimal
The fill O Method
The background O Method
The line 0 Method
The stroke O and stroke Weight 0 Methods
The curve 0 Method
The vertex() and curve Vertex) Methods
Capturing Simple User Interaction
The mouse X and mouseY Variables
The mousePressed 0 Method
Installing the IDE
The mouseReleased O and mouseDragged 0 Methods
The keyPressed and key Variables
Importing Libraries
Downloading Libraries
Loading Things into Processing
Loading and Displaying Images
Displaying Videos in the Processing Environment
Using the Movie Class
Reading and Writing Files
Running and Debugging Applications
Exporting Processing Applications
Conclusion
Review
4.Arduino.
Configuring the IDE
Touring Two Arduino Boards
The Controller
Due milano ve Versus Mini
Touring the Arduino IDE
The Basics of an Arduino Application
The setup Statement
The loop Method
Features of the Arduino Language
Constants
Methods
Arrays
Strings
How io Connect Things to Your Board
HelloWorld
Debugging Your Application
Importing Libraries
Running Your Code
The Basics of a Class
Class Rules
.cpp and h
AS ip leC++Application
Reference
Pointer
When to Use Pointers
Large DataObjects
Pointers and Arrays
When Are You Going to Use This?
Windows
Linux
Basic Variable Types
Arrays
Methods
Classes and Objects inC++
Methods
Variables
Setting Drawing Modes
Drawing Polygons
Images
Video
otx OpenCv
of x Vector Graphics
of x Vector Math
of x Network
of x Osc
Compiling in Xcode
Compiling in Code Blocks
Using the printf Statement
Using the GNU Debugger
Using the Debugger in Xcode
Using the Debugger in Code:Blocks
Sound As Feedback
Sound and Interaction
How SoundWorks on a Computer
Audio in Processing
Running Your Board Without a USB Connection
Review
5.Programming Revisited.
Object-Oriented Programming
Classes
Public and Private Properties
Inheritance
Processing:Classes and Files
C++:Classes and Files
Pointers and References
Review
6.open Frameworks.
Your lDE and Com purer
MacOSX
Taking Another QuickTour of C++
GettingStarted with oF
Touring an oF Application
Crea