Extensions:
Write a program to draw a regular pentagon, hexagon, etc.
What happens to the shape as the number of sides becomes infinitely large?
Advanced: Write a program that asks for the number of sides then draws that polygon. If you're a beginner, we'll revisit this idea later.
MTH1W Curriculum Links :
B1.3 - Use patterns and number relationships to explain density, infintiy and limit as they relate to number sets
C2.2 - Create code by decomposing situations into computational steps in order to represent mathematical concepts and relationships, and to solve problems
E1.2 - Create and analyse designs involving geometric relationships and circle and triangle properties, using various tools
Potential Pitfalls:
Sprite disappears off the screen: Reset the x and y-coordinates of the sprite to (0,0). This can be done using the sprite window at the bottom right of the screen.
Sprite keeps disappearing off the stage: Add the 'if on edge, bounce' block inside the repeat.
Code disappears: Click on the sprite in the sprite window (located on the lower right of the screen) where the code was written and it should reappear.