elements, in arrays, 152 ellipseMode ( ) function, 22 ellipses, drawing, 9, 17-19 else blocks, 58-60 embedded for loops, 44 endshape ( ) function, 28 Examples and Reference, 11-12 exporting sketches, 11 expressions, 39 F fields, 136, 138 fill ( ) function, 23, 25 float data, 104, 131, 135, 207 float variable, 37 fonts, 94-97 drawing text in a box, 96 drawing with, 95-97 for loops, 40-45 creating rows and columns with, 45 embedded, 44 filling arrays with values in, 155-156 for fanning out lines, 44 for halftone dots, 46 for kinking lines, 44 for pins and lines, 46 for quick code changes, 43 frame rates, 49, 103-104 frames, 103 functions, 121-133 basics of, 122-123 coding tips, 202 creating, 124-130 defined, 13 return values, 130 G getFloat ( ) method, 168 getInt ( ) method, 168, 174 getString ( ) method, 174 getting help, xv GIF image format, 93 gray values, 25 H halftone dots, creating, 45 headers, in Table data, 170 I if blocks, 57-60 image ( ) function, 90 images drawing to screen, 90-92 formats, 93-94 image/PDF export, 189-192 resizing, 92-93 sequences of, 160-161 transparency , 93-94 working with multiple, 91 index values, 152 initialization statement, 41 int data, 135, 207 J JPEG image format, 93 JSON data, and APIs, 177-180 JSON files, 172-176 K key variables, 67 keyCode variable, 69 keypressed variable, 66-70 keys, tapping, 67-68 L libraries Library Manager, 184 Serial Library, 193 Sound audio library, 184 lines drawing, 14-16 drawing continuous, 53 setting thickness of, 53-54 smoothing with easing, 55 Linux installation, 7 loadImage ( ) function, 90 loadTable ( ) function, 167 local variable, 211 Index 215
lowercase/uppercase letters in code, 203 M Mac OS X installation, 7 map ( ) function, 70-72, 196 math (see arithmetic operations) media, 89-102 downloading online example files, 89-90 fonts, 94-97 (see also fonts) images, 90-94 (see also images) shapes, 97-100 (see also shapes) sound, 184-189 (see also sound) Message Area, 8 methods, 136, 139 methods, chaining, 179-180 microphones, 186 modularity, 121 motion (see animation) mouse clicks of, 56-61 easing movements of, 54-56 tracking movements with arrays, 156-158 mouse tracking, 51-52 mousepressed variable, 56-58 mouseX/mouseY variables, 70, 92, 188 move ( ) method, 143 N naming variables, 36 network data (see see APIs (application programming interfaces)) nf ( ) function, 161 noFill ( ) function, 25 noStroke function, 25 O object-oriented programming (OOP), 135 objects, 135-148 arrays of, 158-161 basic concepts, 135-136 classes of, 137-142, 166 creating, 142-145 fields and methods, 136 operators, 39 order of operations , 209 PEMDAS, 40 P parameters, 13, 202 PDFs (see images) PEMDAS acronym, 40 persistence of vision, 103 PFont data, 135, 166, 207 PImage data, 135, 166, 207 pins and lines, creating, 45 pixels, 13 PNG image format, 93-94 point ( ) function, 14 popMatrix ( ) function, 83 primitives, 165 println ( ) function, 49 PrintWriter class, 180 Processing data folder, 89-90 downloading/launching, 7-8 evolution of, xi-xii Examples and Reference, 11-12 flexibility of, 2 history of, 3 libraries, 183-191 related languages and program development, 4-5 special variables in, 38 tabs feature, 145 website for sharing/networking, 5 Processing Development Environment (PDE), 8 PShape data, 135, 166, 207 216 Index <strong>www</strong>.<strong>ebook777.com</strong>
- Page 1 and 2:
www.ebook777.com
- Page 3 and 4:
www.ebook777.com
- Page 5 and 6:
www.ebook777.com Advance Praise for
- Page 7 and 8:
www.ebook777.com Make: Getting Star
- Page 9 and 10:
Example 3-11: Set Stroke Weight. .
- Page 11 and 12:
7/Media. . . . . . . . . . . . . .
- Page 13 and 14:
12/Data. . . . . . . . . . . . . .
- Page 15 and 16:
Processing experienced a long child
- Page 17 and 18:
that can be applied to creating gam
- Page 19 and 20:
Maker Media, Inc. 1160 Battery Stre
- Page 21 and 22:
Through founding the Aesthetics and
- Page 23 and 24:
2 Getting Started with Processing w
- Page 25 and 26:
4 Getting Started with Processing w
- Page 27 and 28:
www.ebook777.com
- Page 29 and 30:
8 Getting Started with Processing w
- Page 31 and 32:
10 Getting Started with Processing
- Page 33 and 34:
12 Getting Started with Processing
- Page 35 and 36:
14 Getting Started with Processing
- Page 37 and 38:
16 Getting Started with Processing
- Page 39 and 40:
18 Getting Started with Processing
- Page 41 and 42:
20 Getting Started with Processing
- Page 43 and 44:
22 Getting Started with Processing
- Page 45 and 46:
Figure 3-3. Colors are created by d
- Page 47 and 48:
26 Getting Started with Processing
- Page 49 and 50:
28 Getting Started with Processing
- Page 51 and 52:
30 Getting Started with Processing
- Page 53 and 54:
32 Getting Started with Processing
- Page 55 and 56:
www.ebook777.com
- Page 57 and 58:
36 Getting Started with Processing
- Page 59 and 60:
38 Getting Started with Processing
- Page 61 and 62:
40 Getting Started with Processing
- Page 63 and 64:
42 Getting Started with Processing
- Page 65 and 66:
44 Getting Started with Processing
- Page 67 and 68:
46 Getting Started with Processing
- Page 69 and 70:
48 Getting Started with Processing
- Page 71 and 72:
50 Getting Started with Processing
- Page 73 and 74:
52 Getting Started with Processing
- Page 75 and 76:
54 Getting Started with Processing
- Page 77 and 78:
56 Getting Started with Processing
- Page 79 and 80:
58 Getting Started with Processing
- Page 81 and 82:
60 Getting Started with Processing
- Page 83 and 84:
62 Getting Started with Processing
- Page 85 and 86:
64 Getting Started with Processing
- Page 87 and 88:
66 Getting Started with Processing
- Page 89 and 90:
68 Getting Started with Processing
- Page 91 and 92:
70 Getting Started with Processing
- Page 93 and 94:
72 Getting Started with Processing
- Page 95 and 96:
74 Getting Started with Processing
- Page 97 and 98:
76 Getting Started with Processing
- Page 99 and 100:
78 Getting Started with Processing
- Page 101 and 102:
80 Getting Started with Processing
- Page 103 and 104:
82 Getting Started with Processing
- Page 105 and 106:
84 Getting Started with Processing
- Page 107 and 108:
86 Getting Started with Processing
- Page 109 and 110:
www.ebook777.com
- Page 111 and 112:
90 Getting Started with Processing
- Page 113 and 114:
92 Getting Started with Processing
- Page 115 and 116:
94 Getting Started with Processing
- Page 117 and 118:
96 Getting Started with Processing
- Page 119 and 120:
98 Getting Started with Processing
- Page 121 and 122:
100 Getting Started with Processing
- Page 123 and 124:
102 Getting Started with Processing
- Page 125 and 126:
104 Getting Started with Processing
- Page 127 and 128:
106 Getting Started with Processing
- Page 129 and 130:
108 Getting Started with Processing
- Page 131 and 132:
110 Getting Started with Processing
- Page 133 and 134:
112 Getting Started with Processing
- Page 135 and 136:
Figure 8-2. A sine wave is created
- Page 137 and 138:
116 Getting Started with Processing
- Page 139 and 140:
118 Getting Started with Processing
- Page 141 and 142:
www.ebook777.com
- Page 143 and 144:
122 Getting Started with Processing
- Page 145 and 146:
124 Getting Started with Processing
- Page 147 and 148:
126 Getting Started with Processing
- Page 149 and 150:
128 Getting Started with Processing
- Page 151 and 152:
130 Getting Started with Processing
- Page 153 and 154:
132 Getting Started with Processing
- Page 155 and 156:
www.ebook777.com
- Page 157 and 158:
136 Getting Started with Processing
- Page 159 and 160:
138 Getting Started with Processing
- Page 161 and 162:
140 Getting Started with Processing
- Page 163 and 164:
142 Getting Started with Processing
- Page 165 and 166:
144 Getting Started with Processing
- Page 167 and 168:
Figure 10-2. Code can be split into
- Page 169 and 170:
148 Getting Started with Processing
- Page 171 and 172:
150 Getting Started with Processing
- Page 173 and 174:
152 Getting Started with Processing
- Page 175 and 176:
154 Getting Started with Processing
- Page 177 and 178:
156 Getting Started with Processing
- Page 179 and 180:
158 Getting Started with Processing
- Page 181 and 182:
160 Getting Started with Processing
- Page 183 and 184:
162 Getting Started with Processing
- Page 185 and 186: 164 Getting Started with Processing
- Page 187 and 188: 166 Getting Started with Processing
- Page 189 and 190: 168 Getting Started with Processing
- Page 191 and 192: 170 Getting Started with Processing
- Page 193 and 194: 172 Getting Started with Processing
- Page 195 and 196: 174 Getting Started with Processing
- Page 197 and 198: 176 Getting Started with Processing
- Page 199 and 200: 178 Getting Started with Processing
- Page 201 and 202: 180 Getting Started with Processing
- Page 203 and 204: 182 Getting Started with Processing
- Page 205 and 206: 184 Getting Started with Processing
- Page 207 and 208: 186 Getting Started with Processing
- Page 209 and 210: 188 Getting Started with Processing
- Page 211 and 212: 190 Getting Started with Processing
- Page 213 and 214: 192 Getting Started with Processing
- Page 215 and 216: 194 Getting Started with Processing
- Page 217 and 218: 196 Getting Started with Processing
- Page 219 and 220: 198 Getting Started with Processing
- Page 221 and 222: www.ebook777.com
- Page 223 and 224: program has many bugs, you’ll nee
- Page 225 and 226: Style Processing is flexible about
- Page 227 and 228: www.ebook777.com
- Page 229 and 230: There are more data types than thos
- Page 231 and 232: www.ebook777.com
- Page 233 and 234: www.ebook777.com
- Page 235: drawing, 9 circular motion, 113-116
- Page 239 and 240: Text Editor, 8 textSize ( ) functio