Snap Documentation
IntroductionGet startedGlossaryReferences
1.0.0
1.0.0
  • Introduction
  • Get started
    • The First Day
    • Algorithms
    • Programming Languages
    • SNAP Self-Portrait
      • Do now
        • I Am ...
      • Labs
        • Getting to Know You
  • Snap!
    • Getting started with Snap!
      • Labs
        • Welcome to Snap! - Part 1
        • Welcome to Snap! - Part 2
    • Building Blocks
      • Do now
        • Tracing and Debugging
      • Labs
        • SNAP Scavenger Hunt
    • Drawing Shapes
      • Do now
        • Drawing a Triangle
      • Labs
        • Squares, Triangles, and Stars, Oh My!
    • Costumes
    • Animation
      • Do now
        • Sprite Communication
      • Labs
        • Sprites in Action
    • Storytelling
      • Do now
        • Knock Knock
        • Click Event Interaction
        • Movement Interaction
    • Project
      • Animated Storytelling
  • Loops
    • Loops
      • Do now
        • Introduction to Loops
      • Labs
        • Squares and Triangles Redux
    • Nested Loops
      • Do Now
        • Debugging Loops
      • Labs
        • Yellow Brick Road
    • Inputs and Conditionals
      • Do now
        • Stairs
      • Labs
        • What Shape is That?
    • Variables
      • Do now
        • Debugging
      • Labs
        • Guessing Game
    • Boole in the House
      • Do now
        • Variables Practice
      • Labs
        • Triangles of All Kinds
    • Combining Loops and Conditionals
      • Do now
        • Boolean Practice
      • Labs
        • What Goes Up...
    • Quiz
      • Loops
    • Pong
      • Do Now
        • Bouncing Ball
    • Project
      • Pong
      • Pong - Alternative
  • Customization
    • Abstraction and Friends
    • Procedures
      • Do now
        • Drawing Squares
      • Labs
        • Drawing Shapes
    • Customization - Part 1
      • Do now
        • Jumping
      • Labs
        • Let Me Check My Calendar
    • Customization - Part 2
      • Do now
        • Practice using Arguments
      • Labs
        • If My Calculations Are Correct...
    • Quiz
      • Customization
    • Project
      • Platform Game
      • Platform Game - Alternative
  • Lists
    • Intro to Lists
    • Static Lists
      • Do now
        • Letters of a Word
      • Labs
        • You Talkin' to Me?
    • List Practice - Part 1
      • Do now
        • Quote of the Day
      • Labs
        • Guess Who
    • List Practice - Part 2
      • Do now
        • Traversing List
      • Labs
        • Number Cruncher
    • Sequential Search
      • Do now
        • List Tracing
      • Labs
        • It's Around Here Somewhere
    • Lists
    • Guess My Word
      • Do now
        • Gentle Guess My Word
    • Project
      • Guess My Word
  • Cloning
    • Introduction to Cloning
      • Labs
        • Connect the Dots
    • Cloning Sprites
      • Do now
        • Star Wars Troopers
      • Labs
        • Lots of Balls
    • Communicating with Clones
      • Do now
        • Star Wars Troopers using Cloning
      • Labs
        • Fewer Balls
    • Quiz
      • Cloning
    • Space Invaders
    • Project
      • Space Invaders
  • Final Project
    • Design Basics
    • Research and Ideate
    • Defining Requirements
    • Building a Plan
    • Project Implementation
    • Project
  • References
    • How to's
      • Create Snap Account
      • Save & Share Projects
      • Snap Window
      • Sprites
      • Scripts
      • Movement & Position
      • Drawing
    • Readability
    • Snap elements
      • Motion
      • Looks
      • Sound
      • Pen
      • Control
      • Sensing
      • Operators
      • Variables
  • Glossary
Powered by GitBook
On this page
  • Lab
  • Block Categories
  • Drawing Shapes

Was this helpful?

  1. Snap!

Drawing Shapes

PreviousSNAP Scavenger HuntNextDo now

Last updated 5 years ago

Was this helpful?

Lab

Block Categories

As you saw in Lab 1.1, all of the in Snap are organized into categories. Each category is a different color. You can access each category by clicking on the tabs at the top left of the .

The blocks are categorized under each tab based on what each block does. The section includes a description of each category. It also includes an explanation of the functionality of each block within a category.

Drawing Shapes

Before you start drawing shapes in Snap!, it is important to understand the difference between a polygon's interior angles and exterior angles.

A polygon's interior angles are the angles formed inside a polygon by two adjacent sides.

A polygon's exterior angles are the angles between the side of a polygon and an adjacent side extended outward.

The diagram below show the interior angles and exterior angles of an equilateral triangle, which is a triangle with three sides that are the same length:

[image below needs to be replaced with image that shows exterior angles as well, Kyle will replace]

。 09 。 09 Image Source: Wikimedia Commons

The exterior angles of an equilateral triangle are each 120 degrees. See the code below for an example of how to use this information to draw an equilateral triangle.

when' 2 ke ressed pen turn turn turn down 100 120 100 120 100 120

Press the play button below to see a demo of what this script does to the sprite happens when you press the "2" key on your keyboard:

[Add video/gif of sprite drawing triangle]

Note that the animate button is activated in this demo. Add description of animate button. (Kyle will add) The red arrow indicates the animate button.

Embed video of "triangle walk" somewhere

Exterior angles formula

Regular polygons are angles that have equal angles and equal sides. The sum of the exterior angles of a polygon is 360. Therefore, you can use this formula to determine the size of each exterior angle in a regular polygon:

360n

n = number of sides

blocks
Snap Window
References