Drawing Shapes with Loops
by Anonymous
Set the repeat count and turn angle to make the turtle draw polygons, and discover that the turns always add up to 360 degrees.
Ready to remix β hit the π΄ Remix button below. You'll sign up first, then this app is copied into your workspace.
About this app
Drawing Shapes with Loops is an interactive beginner coding activity built around turtle graphics. Learners stack movement and turn commands, run them to watch a turtle draw, then choose repeat counts and turn angles to match squares, triangles, hexagons, pentagons, and stars. A nested-loop section shows how repeatedly rotating a square creates four-, six-, eight-, or twelve-petal patterns while reinforcing that the total turn is 360 degrees.
Use cases
- Students learning basic programming and loops
- Teachers introducing turtle graphics and geometry
- Beginners practicing movement commands and angles
- Learners exploring nested loops through visual patterns
Features
- Command-stacking turtle activity with forward and turn instructions
- Animated SVG drawing that shows the turtleβs path
- Shape challenges with selectable repeat counts and turn angles
- Goal-versus-your-drawing comparison for shape exercises
- Nested-loop pattern exercises based on rotating a square
- Reset, clear, next-challenge, and sound controls