没有合适的资源?快使用搜索试试~ 我知道了~
Programming Interactivity Arduino Processing
5星 · 超过95%的资源 需积分: 9 35 下载量 147 浏览量
2010-03-03
13:21:37
上传
评论
收藏 7.46MB PDF 举报
温馨提示
试读
735页
这是一本使用Processing及Arduino编写多媒体程序的教材,激发设计灵感,详细的阐述了使用多种工具实现多媒体开发。
资源推荐
资源详情
资源评论
Programming Interactivity
A Designer’s Guide to Processing, Arduino, and
openFrameworks
Joshua Noble
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Taipei
•
Tokyo
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
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
Defining a Function 41
Passing Parameters to a Method 42
Some Suggestions on Writing Functions 44
Overloading Functions 44
Objects and Properties 46
Scope 49
Review 50
3. Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Downloading and Installing Processing 54
Exploring the Processing IDE 54
The Basics of a Processing Application 56
The setup() Method 56
The draw() Method 57
The Basics of Drawing with Processing 60
The rect(), ellipse(), and line() Methods 60
RGB Versus Hexadecimal 62
The fill() Method 63
The background() Method 65
The line() Method 65
The stroke() and strokeWeight() Methods 65
The curve() Method 66
The vertex() and curveVertex() Methods 66
Capturing Simple User Interaction 67
The mouseX and mouseY Variables 68
The mousePressed() Method 69
The mouseReleased() and mouseDragged() Methods 70
The keyPressed and key Variables 73
Importing Libraries 77
Downloading Libraries 77
Loading Things into Processing 79
Loading and Displaying Images 79
Displaying Videos in the Processing Environment 81
Using the Movie Class 81
Reading and Writing Files 83
Running and Debugging Applications 85
Exporting Processing Applications 86
Conclusion 88
Review 89
4. Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Starting with Arduino 92
Installing the IDE 93
iv |
Table of Contents
剩余734页未读,继续阅读
daricchen
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页