Scratch Programming I Basic 6 Basic Technology Lesson Note
Download Lesson NoteTopic: Scratch Programming I
Learning Objectives
By the end of the lesson, pupils should be able to:
- Apply Scratch programming to draw basic shapes
Content
Introduction to Scratch
What is Scratch?
- Visual programming language
- Developed by MIT Media Lab
- Designed for children and beginners
- Uses drag-and-drop blocks
- Creates animations, games, stories
Features:
- User-friendly interface
- No typing of code required
- Immediate visual results
- Large online community
- Free to use
Accessing Scratch:
- Website: scratch.mit.edu
- Create free account
- Can work online or download offline editor
Scratch Interface
Main Components:
- Stage (Upper Right)
- Where your project runs
- Shows sprites and backgrounds
- Default size: 480 × 360 pixels
- Coordinate system: center is (0,0)
- Sprite List (Lower Right)
- Shows all sprites in project
- Can add, delete, or select sprites
- Default sprite: Scratch Cat
- Block Palette (Left)
- Contains all programming blocks
- Organized by categories (color-coded)
- Drag blocks to Scripts Area
- Scripts Area (Center)
- Where you build code
- Snap blocks together
- Can have multiple scripts
- Backpack (Bottom)
- Store and share code/sprites
- Available across projects
Block Categories:
- Motion (Blue) – Movement commands
- Looks (Purple) – Appearance changes
- Sound (Pink) – Audio commands
- Events (Yellow) – Triggers for code
- Control (Orange) – Loops and conditions
- Sensing (Light Blue) – Detect inputs
- Operators (Green) – Math and logic
- Variables (Orange) – Store data
- My Blocks (Purple) – Custom blocks
Coordinates in Scratch
Stage Coordinates:
- X-axis: -240 to +240 (left to right)
- Y-axis: -180 to +180 (bottom to top)
- Center: (0, 0)
- Top right corner: (240, 180)
- Bottom left corner: (-240, -180)
Drawing Basic Shapes in Scratch
Preparation:
- Delete Scratch Cat sprite (optional)
- Add pen extension:
- Click “Add Extension” (bottom left)
- Select “Pen”
- Create new sprite or use existing
The Pen Blocks:
Key Pen Blocks:
- pen down – Start drawing
- pen up – Stop drawing
- set pen color to [ ] – Choose color
- set pen size to [ ] – Choose thickness
- erase all – Clear all drawings
- stamp – Make copy of sprite
Drawing a SQUARE:
when flag clicked
erase all
pen up
go to x: (-50) y: (50)
set pen color to [red]
set pen size to (3)
pen down
repeat (4)
  move (100) steps
  turn right (90) degrees
end
pen up
Explanation:
- Start when green flag clicked
- Clear previous drawings
- Lift pen (don’t draw while moving to start)
- Move to starting position
- Set pen color to red
- Set pen thickness to 3
- Put pen down (start drawing)
- Repeat 4 times:
- Move 100 steps (one side)
- Turn 90 degrees right
- Lift pen (stop drawing)
Drawing a TRIANGLE:
when flag clicked
erase all
pen up
go to x: (-50) y: (-50)
set pen color to [blue]
set pen size to (3)
pen down
repeat (3)
  move (120) steps
  turn right (120) degrees
end
pen up
Key Difference:
- Repeat 3 times
- Turn 120 degrees (360° ÷ 3 = 120°)
Drawing a HEXAGON:
when flag clicked
erase all
pen up
go to x: (0) y: (0)
set pen color to [green]
set pen size to (3)
pen down
repeat (6)
  move (80) steps
  turn right (60) degrees
end
pen up
Pattern:
- For any regular polygon: 360° ÷ number of sides
Drawing a CIRCLE:
Method 1 – Many Small Steps:
when flag clicked
erase all
pen up
go to x: (0) y: (0)
set pen color to [purple]
set pen size to (2)
pen down
repeat (360)
  move (1) steps
  turn right (1) degrees
end
pen up
Method 2 – Using Variables:
when flag clicked
erase all
set [radius] to (50)
pen up
go to x: (radius) y: (0)
point in direction (90)
set pen color to [orange]
set pen size to (2)
pen down
repeat (360)
  move (2 * 3.14159 * radius / 360) steps
  turn right (1) degrees
end
pen up
Drawing a STAR (5-pointed):
when flag clicked
erase all
pen up
go to x: (0) y: (50)
set pen color to [yellow]
set pen size to (3)
pen down
repeat (5)
  move (100) steps
  turn right (144) degrees
end
pen up
Key: Turn 144 degrees (720° ÷ 5)
Drawing a RECTANGLE:
when flag clicked
erase all
pen up
go to x: (-75) y: (40)
set pen color to [red]
set pen size to (3)
pen down
repeat (2)
  move (150) steps
  turn right (90) degrees
  move (80) steps
  turn right (90) degrees
end
pen up
Customizing Drawings:
Change Colors:
- Use different color blocks
- Can use color picker
- Or set pen color to random
Change Size:
- Adjust movement steps
- Change pen size
- Use variables for flexibility
Multiple Shapes: Create separate scripts or use “go to” blocks to move between shapes without drawing
Adding Interactivity:
Draw on Key Press:
when [space] key pressed
erase all
pen up
go to x: (0) y: (0)
pen down
[shape drawing code here]
pen up
Draw Random Shapes:
when flag clicked
forever
  wait (1) seconds
  set pen color to (pick random (1) to (100))
  [shape drawing code here]
end
Tips for Drawing in Scratch:
- Always start with:
- erase all (clear previous drawings)
- pen up (don’t draw while positioning)
- go to starting position
- Always end with:
- pen up (stop drawing)
- Use repeat blocks for regular shapes
- Calculate angles: 360° divided by number of sides
- Test frequently – Click green flag often
- Use variables for sizes to easily adjust
- Comment your code – Right-click blocks to add notes
Practice Projects:
Project 1: Rainbow Flower
- Draw circles in different colors
- Arrange in flower pattern
- Use loops
Project 2: House
- Square for house body
- Triangle for roof
- Rectangles for door and windows
Project 3: Robot Face
- Circle for head
- Rectangles for eyes
- Triangle for nose
- Line for mouth