Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Processing 2 Creative Coding Hotshot.pdf
Скачиваний:
10
Добавлен:
17.03.2016
Размер:
5.28 Mб
Скачать

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.

Why Subscribe?

ff

ff

ff

Fully searchable across every book published by Packt

Copy and paste, print and bookmark content

On demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Table of Contents

Preface

1

Project One: Romeo and Juliet

7

Mission Briefing

7

Making Processing talk

9

Reading Shakespeare

11

Adding more actors

17

Building robots

23

Mission Accomplished

26

You Ready to go Gung HO? A Hotshot Challenge

27

Project Two: The Stick Figure Dance Company

29

Mission Briefing

29

Connecting the Kinect

31

Making Processing see

35

Making a dancer

38

Dance! Dance! Dance!

46

Mission Accomplished

52

You Ready to go Gung HO? A Hotshot Challenge

52

Project Three: The Disco Dance Floor

53

Mission Briefing

53

Can you hear me?

54

Blinking to the music

58

Making your disco dance floor

70

Here come the dancers

76

Mission Accomplished

82

You Ready to go Gung HO? A Hotshot Challenge

83

Table of Contents

Project Four: Smilie-O-Mat

85

Mission Briefing

85

Drawing your face

86

Let me change it

90

Hello Twitter

94

Tweet your mood

102

Mission Accomplished

109

You Ready to go Gung HO? A Hotshot Challenge

109

Project Five: The Smilie-O-Mat Controller

111

Mission Briefing

111

Connecting your Arduino

112

Building your controller

118

Changing your face

126

Putting it in a box

130

Mission Accomplished

134

You Ready to go Gung HO? A Hotshot Challenge

135

Project Six: Fly to the Moon

137

Mission Briefing

137

Drawing a sprite

138

Initiating the landing sequence

144

Running your sketch in the browser

152

Running the game on an Android phone

156

Mission Accomplished

161

You Ready to go Gung HO? A Hotshot Challenge

162

Project Seven: The Neon Globe

163

Mission Briefing

163

Rotating a sphere

164

Let there be light

168

From sphere to globe

173

From globe to neon globe

179

Mission Accomplished

187

You Ready to go Gung HO? A Hotshot Challenge

188

Project Eight: Logfile Geo-visualizer

189

Mission Briefing

189

Reading a logfile

190

Geocoding IP addresses

194

Red Dot Fever

201

ii

 

Table of Contents

 

Interactive Red Dot Fever

208

Mission Accomplished

215

You Ready to go Gung HO? A Hotshot Challenge

215

Project Nine: From Virtual to Real

217

Mission Briefing

217

Beautiful functions

218

Generating an object

224

Exporting the object

232

Making it real

238

Mission Accomplished

242

You Ready to go Gung HO? A Hotshot Challenge

243

Index

245

iii

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]