Page 279 - Learn To Program With Scratch
P. 279
= (equal to), 124 paths (branches), 131
> (greater than), 124 Pen blocks
< (less than), 124 change pen color by [10], 31
* (multiplication), 21 change pen shade by [10], 31
– (subtraction), 21 change pen size by [1], 31
and, 135 clear, 14, 31–32
ceiling of [9], 92 pen down, 31
floor of [9], 92 pen up, 70
join [hello][world], 118–119 set pen color to [0], 31, 70, 73
length of [world], 186 set pen color to [color], 31–32
letter [1] of [world], 186 set pen shade to [50], 31
mod, 21, 131 set pen size to [1], 31–33
not, 36 stamp, 14, 35, 71, 75
or, 135–136 pen commands, 31–32
pick random [1] to [10], 22–23 Pen palette, 31–32
round, 21, 24, 92 pentagon, drawing, 34
sqrt of [9], 22, 30 Pig Latin application, 189–190
operators PigLatin.sb2, 189, 190
arithmetic, 21 Pinwheel procedure, 103
comparison, 124 Pinwheel.sb2, 103
logical, 134 Poet application, 232–233
relational, 124 Poet.sb2, 232, 233
Operators palette, 21–22 Polygon.sb2, 34
Orbit.sb2, 182 Pong game, 15–19
Orbit simulation, 182 Pong_NoCode.sb2, 15
or operator, 135 Pong.sb2, 15
out-of-range index, 219 positional values, 198
overlapping sprites, 52 problem solving, 84, 87, 89, 123
programming environment, 3
P programming language, defined, 1–2
pixelate effect, 51
Paint Editor, 13–15 Presentation mode, 4, 12
drawing a rectangle, 16 prime numbers, 183–184
palettes, 6 PressureUnderWater_NoSolution.sb2, 90
Control, 128, 155–171 Pressure Under Water simulation, 90
Data, 7, 97–100 procedures, 67–90
Events, 32, 37, 49 breaking programs into, 84
Looks, 48–53 building up with, 87
More Blocks, 75–77, 82, 86 via custom blocks, 75
Motion, 6, 25 defined, 68
Operators, 21–22 ending, 162
Pen, 31–32 via message broadcasting, 73
Sensing, 30, 117 naming, 74
Sound, 53–56 nested, 82
Palindrome Checker application, parameters, 77
187–188 that call themselves, 169
Palindrome.sb2, 187, 188 working with, 84
parameter, 79 projects
vs. argument, 80 creating your own, 247
slot, 78, 99 deleting, 250
shape, meaning, 92 editor, 3
PasswordCheck.sb2, 164
Index 257
www.it-ebooks.info

