Create Beautiful Spiral Patterns Using Tynker Pen Blocks | Fun Coding Art for Kids

 

Create a Colorful Spiral Pattern Using Tynker

Have you ever wondered how beautiful spiral patterns are created using code? 
With Tynker’s Pen blocks, you can easily draw stunning geometric designs by combining movement, turns, loops, and colors.

In this activity, we’ll create a bright spiral pattern that grows continuously and changes shades—perfect for introducing loops and angles to young coders.



CODE:



What Students Will Learn

By completing this project, students will learn:

  • How to use Pen blocks in Tynker

  • How loops help repeat patterns

  • How angles affect shapes and designs

  • How changing colors and shades makes patterns more attractive

This activity is ideal for Grades 4–7 and works great as an art + coding integration lesson.

 Blocks Used in This Project

We will use the following Tynker blocks:

  • 🟢 When Green Flag Clicked

  • ✏️ Pen Up / Pen Down

  • 🎨 Set Pen Color & Change Shade

  • ➡️ Move

  • 🔄 Turn Clockwise & Counter-Clockwise

  •   🔁 Repeat & Forever loops


 Step-by-Step Logic Behind the Spiral

  1. Start the program using the Green Flag.

  2. Set the pen size to make the lines clearly visible.

  3. Move the actor to the center of the stage (0,0).

  4. Put the pen down so drawing begins.

  5. Choose a bright color (pink/magenta in this case ).

  6. Use a Forever loop so the spiral keeps growing.

  7. Inside the loop:

    • Move forward slightly

    • Turn a small angle clockwise

    • Repeat this multiple times to form a curve

  8. Change the pen shade and turn counter-clockwise to add a layered spiral effect.



Comments