Download presentation
1
Introducing Scratch the Cat
Shapes and Colors
2
Computer Programs Tell the computer what to do
Without Programs – Computers do nothing Computer Programmers write the programs that make our computers do stuff
3
Scratch Scratch is a way to write computer programs
We can tell Scratch what to do We have to be very specific We have to be very exact We have to be very complete
4
Open Scratch Lets look at a program that tells Scratch to draw shapes
Double-Click on the File Named: SHAPES.sb
5
You Should See This:
6
Draw a Square Lets See Scratch Draw A Square Click on the Green Flag
7
Draw a Square Hit the “S” key Watch Scratch Draw a Square
8
Draw a Square How did we get Scratch to Draw a Square???
How do you draw a Square? We need to “tell” Scratch the same thing in our computer program
9
Program Look at the Middle Block in Scratch Code - Instructions
10
Drawing a Square- Instructions
Key to Press
11
Drawing a Square- Instructions
Color
12
Drawing A Square - Instructions
Sides
13
Drawing A Square - Instructions
Size
14
Drawing A Square - Instructions
How to Turn
15
See the Color – Click on this Box
Change Square - Color See the Color – Click on this Box
16
Change Square - Color Change the Color
17
Change Square - Color Pick ANY Color
18
Draw a Square Hit the “S” key again
Watch Scratch Draw a Square in Your Color
19
Need to Start Over STOP
20
Need to Start Over Start Over
21
See the Size – Click on this Box
Change Square - Size See the Size – Click on this Box
22
Change Square - Size Change the Size
23
Change Square - Size Type A New Number
24
Draw a Square Hit the “S” key again
Watch Scratch Draw a Square with the New Size
25
Drawing A Different Square - Sides
4 Sides in a Square
26
Drawing A Different Square - Sides
Change Number
27
Draw a Square Hit the “S” key again
Watch Scratch Draw a Square with more or less sides 6 Sides
28
Drawing A Different Square – Sides – Put Back to 4
29
Drawing A Different Square – How to Turn
Amount to Turn
30
Drawing A Different Square – How to Turn
Change Number
31
Draw a Square Hit the “S” key again Watch Scratch Draw a Square? 150
32
Drawing A Different Square – Turn – Put Back to 90
33
Program Does More Look at the Middle Block in Scratch
Code - Instructions
34
What Does this Do? Key Clicked? Sides?
35
Draw The Shape Hit the “T” key Watch Scratch Draw The Shape
Were you Right?
36
Make Some Changes? Color Size Turns
37
Draw The Triangle Again
Hit the “T” key Watch Scratch Draw The Shape See Your Changes?
38
Program Does More Look at the Middle Block in Scratch
Code - Instructions
39
What Does this Do? Key Clicked? Sides? Why is this different
What is it doing?
40
Draw The Shape Hit the “R” key Watch Scratch Draw The Shape
Were you Right?
41
Make Some Changes? Have to change in more than 1 place Color Size
Turns Have to change in more than 1 place
42
Draw The Rectangle Again
Hit the “R” key Watch Scratch Draw The Shape See Your Changes?
43
Program Does More Look at the Middle Block in Scratch
Code - Instructions
44
Lets Make Our Own Lets see what it takes to write our own program to tell the computer to draw a line: Click “FILE” FILE
45
Lets Make Our Own Click on “NEW” NEW
46
Lets Make Our Own Save Current Project: Click “YES: YES
47
New Program
48
Change Cat Lets use a different animal Click
49
Delete Scratch Click Scratch
50
Pick a New Animal New – Click Middle Star
51
Pick a New Animal New – Click “Animals” Folder Animals
52
Pick a New Animal Click on any Animal Can Scroll UP and DOWN Scroll
Animals
53
Pick a New Animal Click: OK OK
54
Pick a New Animal New Animal
55
Give Instructions Buttons Sort Instructions
56
Start Click ORANGE button: CONTROL CONTROL
57
Flag (GO) Click on Flag Flag
58
Flag (GO) Drag Flag to Middle Flag
59
Flag (GO) Drag Flag to Middle Drag to Middle
60
Start in Middle of Screen
Click Blue Button: MOTION Motion
61
Start in Middle of Screen
Click on Drag to Middle Motion Go To X:_ Y:_
62
Start in Middle of Screen
Connect to Flag Click to Flag
63
Start in Middle of Screen
Change s to 0s Change to 0
64
Start in Middle of Screen
Change s to 0s Change to 0
65
Line – Color / Width Click Green Button - PEN Pen
66
Line – Clear Drag to Middle CLEAR
67
Line – Color Connect To List Connect to List
68
Line – Color Drag to Middle Pen
69
Line – Color Connect To List Connect to List
70
Line – Pick Color Click on the Box Click BOX Click BOX
71
Line – Pick Color Pick any Color Click Color
72
Line – Size Drag to Middle Set Pen Size
73
Line – Size Connect to List Connect
74
Line – Size Change Change Size Change to 15
75
Write Line Click Drag to Middle Connect to List Pen Down Put in List
76
Say Hello Make it Say Hello Click on Dark Purple: LOOKS LOOKS
77
Say Hello Click Drag to Middle Connect to List Say Hello Connect
78
Test It Test – See if it works Click Green Flag
79
Test It
80
Test It No Line? Why?
81
Draw Line Click Blue: MOTION Motion
82
Draw Line Click Drag to Middle Connect to List Move 10 Steps
83
Draw Long Line Change Line from 10 to 150 Change to To 150 150
84
Test It Try It Click
85
Code - Instructions What Can You Change? How?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.