Programming Interactivity.pdf

(10118 KB) Pobierz
Programming Interactivity
193258176.004.png
Download at Boykma.Com
193258176.005.png
Programming Interactivity
A Designer’s Guide to Processing, Arduino, and
openFrameworks
Joshua Noble
Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo
Download at Boykma.Com
193258176.006.png
 
Programming Interactivity
by Joshua Noble
Copyright © 2009 Joshua Noble. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( http://my.safaribooksonline.com ) . For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com .
Editor: Steve Weiss
Production Editor: Sumita Mukherji
Copyeditor: Kim Wimpsett
Proofreader: Sumita Mukherji
Production Services: Newgen
Indexer: Ellen Troutman Zaig
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Printing History:
July 2009:
First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Programming Interactivity , the image of guinea fowl, and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
TM
This book uses RepKover™, a durable and flexible lay-flat binding.
ISBN: 978-0-596-15414-1
[M]
1247251884
Download at Boykma.Com
193258176.001.png
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Part I. Introductions
1. Introducing Interaction Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
What This Book Is for
3
Programming for Interactivity
4
The Nature of Interaction
5
Messages and Interaction
7
Interfaces and Interaction
8
Languages of Interaction
10
Design and Interaction
12
Art and Interaction
13
Data Exchange and Exploration
15
Working Process
19
2. Programming Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Why You’ll Read This Chapter More Than Once
22
The Nature of Code
22
Variables
23
Simple Types
24
Arrays
29
Casting
33
Operators
33
Control Statements
37
if/then
37
for Loop
38
while Loop
39
continue
40
break
40
Functions
41
iii
Download at Boykma.Com
193258176.002.png 193258176.003.png
Zgłoś jeśli naruszono regulamin