SlideShare a Scribd company logo
SCRATCH
PROGRAMMING
Prakriti Dhang
03-06-2020
SCRATCH
• Developed by MIT media lab.
• Visual programming language.
• Learning environment.
• Allows to create interactive, media-rich projects.
• Allows to create animated stories, educational projects,
games, and simulations.
DOWNLOADS
• Offline version: Work from anywhere. And no internet is
required to build the projects. Can upload your project to
your online account.
Https://scratch.mit.edu/download
• Online Version: Requires internet. Sign in to start new
projects.
https://scratch.mit.edu/
TYPES OF BLOCKS IN SCRATCH
Blocks
Command
Blocks
Function
Blocks
Trigger
Blocks
Control
Blocks
Have a notch on
the top and a
matching bump
on the button.
Do not have
notches.
Returns a
value.
Have rounded
top.
Run blocks
below them.
Have opening
to hold other
blocks.
SCRATCH ENVIRONMENT
WHOLE VIEW
STAGE CURRENT SPRITE PANEL
SPRITE LIST CODE BLOCKS PALETTE
START PROGRAM
STOP PROGRAM
STAGE
Where your Scratch Programs run. It has
• One or more backgrounds (images on the background of the
screen)
• Any code blocks associates with it.
SPRITE
Any object that goes on the stage is a sprite. In Scratch, the sprite is:
• The image on the stage
• Any alternative costumes (looks) it has
• Any sounds associates with it
• Any code blocks associates with it The current sprite is the one that
is selected in the sprite list.
CODE BLOCKS PALETTE
Code in Scratch comes as blocks, that you click together to make
programs. You choose blocks from the code blocks palette and drag
them into the current sprite panel, then click them together. There
are 10 categories of blocks, which are colour coded, and you can
select each category from the list at the top of the code blocks
palette.
CODE BLOCK PALETTE
Motion blocks:
These blocks control the movement of the sprite
Looks blocks:
This category includes several blocks of code that can be used to
modify the appearance of a sprite. With these blocks, you can apply
graphic effects to the sprite, change the color of the sprite, or change
the size of the sprite.
Sound blocks:
These blocks add and control sound in your Scratch
project.
Event blocks:
These blocks control when and how the scripts are activated. With
these, you can control whether a script starts running when the user clicks
the green flag or a sprite
Control blocks:
These blocks control how the scripts run. For example, you can
pause the script for a specified amount of time or you can repeat a sequence
of blocks a specified number of times.
Sensing blocks:
These blocks are used if you need to detect things in your scripts. Some of
these blocks also allow interaction with a webcam or interaction with the
user.
Operators blocks:
These blocks perform math functions, such as adding, subtracting, and
dividing numbers. You can also perform operations on strings of
characters, such as comparing them and adding multiple sentences or
words to create a new sentence.
Pen blocks:
These blocks control the pen, which you can use to draw on the
stage.
CHANGE BACKDROP AND COSTUMES
To change background:
1. Click on the white rectangle shape named “stage 1
backdrop”
2. Click on choose from backdrop library.
3. Select a backdrop and click ok.
To change costume:
1. Click on the cat sprite.
2. Click on choose from library.
3. Select from options and click ok
MOTION AND DRAWING
EVENT PALETTE
• Use to start or
activate the program.
• You can choose how
you want to activate
your program.
MOTION PALETTE
• Use to move the sprite around the stage
TYPES OF MOTIONS COMMANDS
• Absolute Motion
Scratch has four absolute motion commands: Go to, glide to, set x to,
and set y to. These commands tell your sprite exactly where to go.
• Relative Motion
You can move a sprite on the stage using relative motion commands:
move three steps, then turn right, then move two steps.
• Other motion commands
Point towards; if on edge, bounce; and set rotation style.
EXAMPLE 1
1. Moves 50 steps
2. Turns 45 degree
PEN PALETTE
• Pen command is used to see the actual path of sprite
travels.
• Allows to control the pen’s size, pen’s color and pen’s
shade.
• Draw geometric figures.
• Moving and turning a sprite on the stage using the arrow
keys.
PEN PALETTE
• Set pen color: click the command and click anywhere to
choose a color.
• Set pen size: to increase or decrease the font size of the
pen
• Pen down: draws the figure.
• Pen Up: when use pen up, no figure is drawn.
EXAMPLE 2
• Draw a line using pen commands
CONTROL PALETTE
• Duplicating your script can make your program longer.
• Use repeat command from control palette to avoid
writing the code multiple times.
Without use of repeat command:
• Move 100 distance and turn 120° anticlockwise.
• Move 100 distance and turn 120° anticlockwise.
• Move 100 distance and turn 120° anticlockwise.
With repeat command:
• Repeat 3
Move 100 distance and turn 120° anticlockwise.
EXAMPLE 3: DRAW A TRIANGLE
PRACTICE 1
• Try out other commands in event palette to see how it
works.
• Try out other commands in motion palette to see how it
works.
• Try out other commands in pen palette to see how it
works.
• Try out other commands in control palette to see how it
works.
PRACTICE 2
1. Move your sprite 100 steps and turn the sprite 60
degree using right arrow key. Add a 5 seconds wait
between the move and turn.
2. Draw a pentagon and hexagon using repeat block.
3. Create a project: a cat is catching a muffin. [Hints: Use
motion palette, control palette, events palette, pen
palette
THANK YOU

More Related Content

Similar to Start developing projects with Scratch Programming

Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
afsheenfaiq2
 
BGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdfBGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdf
TNGanesan
 
Scratch for kids language in Program.pptx
Scratch for kids language in Program.pptxScratch for kids language in Program.pptx
Scratch for kids language in Program.pptx
nandhinicse147
 
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
Chicago eLearning & Technology Showcase
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratch
Hussam Mostafa
 
Unreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User InterfaceUnreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User Interface
Nick Pruehs
 
Autodesk AutoCAD 2016
Autodesk AutoCAD 2016 Autodesk AutoCAD 2016
Autodesk AutoCAD 2016
masoud esfandiari
 
Productivity Tips For Altium Designer
Productivity Tips For Altium DesignerProductivity Tips For Altium Designer
Productivity Tips For Altium Designer
Schattke
 
1.Scratch 1.pptx
1.Scratch 1.pptx1.Scratch 1.pptx
1.Scratch 1.pptx
Kausar Bohra
 
AUTOCAD SOFTWAE ppt
AUTOCAD  SOFTWAE pptAUTOCAD  SOFTWAE ppt
AUTOCAD SOFTWAE ppt
G R INFRAPROJECTS LTD.
 
Scratch Introduction
Scratch IntroductionScratch Introduction
Scratch Introduction
GirijaSuthoju
 
Altium productivity
Altium productivityAltium productivity
Altium productivityAlex Borisov
 
Robot flash tutorial
Robot flash tutorialRobot flash tutorial
Robot flash tutorial
Foredi Surabaya
 
Adobd Flash - explore the interface
Adobd Flash - explore the interfaceAdobd Flash - explore the interface
Adobd Flash - explore the interface
Fatima AlSaadi
 
5 free tools for web accessibility testing
5 free tools for web accessibility testing5 free tools for web accessibility testing
5 free tools for web accessibility testing
John McNabb
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and Vocabulary
Angela DeHart
 
Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
Bilal Hanbali
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
Vadim Axelrod
 

Similar to Start developing projects with Scratch Programming (20)

Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
BGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdfBGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdf
 
Scratch for kids language in Program.pptx
Scratch for kids language in Program.pptxScratch for kids language in Program.pptx
Scratch for kids language in Program.pptx
 
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
Cets 2016 felstehausen wallace to use a layer state change or new slide, that...
 
Apps in a Flash HCI
Apps in a Flash HCIApps in a Flash HCI
Apps in a Flash HCI
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratch
 
Unreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User InterfaceUnreal Engine Basics 05 - User Interface
Unreal Engine Basics 05 - User Interface
 
Autodesk AutoCAD 2016
Autodesk AutoCAD 2016 Autodesk AutoCAD 2016
Autodesk AutoCAD 2016
 
Productivity Tips For Altium Designer
Productivity Tips For Altium DesignerProductivity Tips For Altium Designer
Productivity Tips For Altium Designer
 
1.Scratch 1.pptx
1.Scratch 1.pptx1.Scratch 1.pptx
1.Scratch 1.pptx
 
AUTOCAD SOFTWAE ppt
AUTOCAD  SOFTWAE pptAUTOCAD  SOFTWAE ppt
AUTOCAD SOFTWAE ppt
 
Scratch Introduction
Scratch IntroductionScratch Introduction
Scratch Introduction
 
Altium productivity
Altium productivityAltium productivity
Altium productivity
 
Robot flash tutorial
Robot flash tutorialRobot flash tutorial
Robot flash tutorial
 
Adobd Flash - explore the interface
Adobd Flash - explore the interfaceAdobd Flash - explore the interface
Adobd Flash - explore the interface
 
5 free tools for web accessibility testing
5 free tools for web accessibility testing5 free tools for web accessibility testing
5 free tools for web accessibility testing
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and Vocabulary
 
Manual
ManualManual
Manual
 
Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Start developing projects with Scratch Programming

  • 2. SCRATCH • Developed by MIT media lab. • Visual programming language. • Learning environment. • Allows to create interactive, media-rich projects. • Allows to create animated stories, educational projects, games, and simulations.
  • 3. DOWNLOADS • Offline version: Work from anywhere. And no internet is required to build the projects. Can upload your project to your online account. Https://scratch.mit.edu/download • Online Version: Requires internet. Sign in to start new projects. https://scratch.mit.edu/
  • 4. TYPES OF BLOCKS IN SCRATCH Blocks Command Blocks Function Blocks Trigger Blocks Control Blocks Have a notch on the top and a matching bump on the button. Do not have notches. Returns a value. Have rounded top. Run blocks below them. Have opening to hold other blocks.
  • 6. STAGE CURRENT SPRITE PANEL SPRITE LIST CODE BLOCKS PALETTE START PROGRAM STOP PROGRAM
  • 7. STAGE Where your Scratch Programs run. It has • One or more backgrounds (images on the background of the screen) • Any code blocks associates with it. SPRITE Any object that goes on the stage is a sprite. In Scratch, the sprite is: • The image on the stage • Any alternative costumes (looks) it has • Any sounds associates with it • Any code blocks associates with it The current sprite is the one that is selected in the sprite list. CODE BLOCKS PALETTE Code in Scratch comes as blocks, that you click together to make programs. You choose blocks from the code blocks palette and drag them into the current sprite panel, then click them together. There are 10 categories of blocks, which are colour coded, and you can select each category from the list at the top of the code blocks palette.
  • 9. Motion blocks: These blocks control the movement of the sprite Looks blocks: This category includes several blocks of code that can be used to modify the appearance of a sprite. With these blocks, you can apply graphic effects to the sprite, change the color of the sprite, or change the size of the sprite. Sound blocks: These blocks add and control sound in your Scratch project. Event blocks: These blocks control when and how the scripts are activated. With these, you can control whether a script starts running when the user clicks the green flag or a sprite Control blocks: These blocks control how the scripts run. For example, you can pause the script for a specified amount of time or you can repeat a sequence of blocks a specified number of times.
  • 10. Sensing blocks: These blocks are used if you need to detect things in your scripts. Some of these blocks also allow interaction with a webcam or interaction with the user. Operators blocks: These blocks perform math functions, such as adding, subtracting, and dividing numbers. You can also perform operations on strings of characters, such as comparing them and adding multiple sentences or words to create a new sentence. Pen blocks: These blocks control the pen, which you can use to draw on the stage.
  • 11. CHANGE BACKDROP AND COSTUMES To change background: 1. Click on the white rectangle shape named “stage 1 backdrop” 2. Click on choose from backdrop library. 3. Select a backdrop and click ok. To change costume: 1. Click on the cat sprite. 2. Click on choose from library. 3. Select from options and click ok
  • 13. EVENT PALETTE • Use to start or activate the program. • You can choose how you want to activate your program.
  • 14. MOTION PALETTE • Use to move the sprite around the stage
  • 15. TYPES OF MOTIONS COMMANDS • Absolute Motion Scratch has four absolute motion commands: Go to, glide to, set x to, and set y to. These commands tell your sprite exactly where to go. • Relative Motion You can move a sprite on the stage using relative motion commands: move three steps, then turn right, then move two steps. • Other motion commands Point towards; if on edge, bounce; and set rotation style.
  • 16. EXAMPLE 1 1. Moves 50 steps 2. Turns 45 degree
  • 17. PEN PALETTE • Pen command is used to see the actual path of sprite travels. • Allows to control the pen’s size, pen’s color and pen’s shade. • Draw geometric figures. • Moving and turning a sprite on the stage using the arrow keys.
  • 18. PEN PALETTE • Set pen color: click the command and click anywhere to choose a color. • Set pen size: to increase or decrease the font size of the pen • Pen down: draws the figure. • Pen Up: when use pen up, no figure is drawn.
  • 19. EXAMPLE 2 • Draw a line using pen commands
  • 20. CONTROL PALETTE • Duplicating your script can make your program longer. • Use repeat command from control palette to avoid writing the code multiple times.
  • 21. Without use of repeat command: • Move 100 distance and turn 120° anticlockwise. • Move 100 distance and turn 120° anticlockwise. • Move 100 distance and turn 120° anticlockwise. With repeat command: • Repeat 3 Move 100 distance and turn 120° anticlockwise.
  • 22. EXAMPLE 3: DRAW A TRIANGLE
  • 23. PRACTICE 1 • Try out other commands in event palette to see how it works. • Try out other commands in motion palette to see how it works. • Try out other commands in pen palette to see how it works. • Try out other commands in control palette to see how it works.
  • 24. PRACTICE 2 1. Move your sprite 100 steps and turn the sprite 60 degree using right arrow key. Add a 5 seconds wait between the move and turn. 2. Draw a pentagon and hexagon using repeat block. 3. Create a project: a cat is catching a muffin. [Hints: Use motion palette, control palette, events palette, pen palette