Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Scratch (programming

language)
Introduction
1. Scratch is a block-based visual programming language.
2. website targeted primarily at children 8-16 as an educational tool for coding.
3. Users of the site can create projects on the web using a block-like interface.
4. The service is developed by the MIT Media Lab, has been translated into 70+ languages
5. Scratch takes its name from a technique used by disk jockeys called "scratching", where vinyl
records are clipped together and manipulated on a turntable to produce different sound effects
and music.
User interface

The Scratch interface is divided into three main sections:


1. a stage area
2. block palette
3. a coding area to place and arrange the blocks into scripts that can be run by pressing the
green flag or clicking on the code itself.

Users may also create their own code blocks and they will appear in "My Blocks".
With a sprite selected at the bottom of the staging area, blocks of commands can be applied to
it by dragging them from the block palette into the coding area. The Costumes tab allows users
to change the look of the sprite in order to create various effects, including animation.[11] The
Sounds tab allows attaching sounds and music to a sprite.[12]
When creating sprites and backgrounds, users can draw their own sprite manually,[11] choose a
Sprite from the library, or upload an image.[12]
The table below shows the categories of the programming blocks:
Category Notes    Category Notes
  Motion Movements of sprites like angles      Sensing Sprites can interact with the surroundings
and position

  Looks Controls the visuals of the sprite   Operators Mathematical operators, comparisons

  Sound Plays audio files and effects   Variables Variable and List usage and assignment

  Events Event handlers   My Blocks Allows defining functions which have no


return value

  Control Conditionals and loops etc.   Extensions Explained below


Terminolgy
1. Sprite
2. Backgorund
3. Costume
4. Flag
5. Stop

You might also like