Combining widgets

Count the shapes in a pattern block picture

Build a picture out of pattern blocks with the Pattern Blocks widget's Show mode, then ask "How many triangles?" and "How many squares?" with two Number Inputs that young learners answer by tapping + and −.

Level
Beginner
Time
About 15 min
Steps
9
Updated
Nov 1, 2026
What you'll build

A one-scene kindergarten lesson with a pattern block house, sun and trees, two counting questions that check each answer, and an ending that appears once both counts are right.

Ready-made lesson

Get the finished lesson

Skip straight to the result, or keep it open beside the steps. Add this tutorial's lesson to your account and explore how it works in the studio.

"How many triangles can you find?" is a classic kindergarten task: children look at a picture made of pattern blocks, find every block of one shape, and count them. It practises shape names and counting at the same time, and children have to look past color and size to notice a shape wherever it is.

The Pattern Blocks widget has a mode made for this, Show: you arrange blocks into a picture, and students see it but can't move anything. Beside it, a Number Input for each question takes the answer and checks it.

In this tutorial you'll build a one-scene lesson called Count the shapes: a house with two orange square walls and a red roof, a yellow hexagon sun, and four green triangle trees. Students answer How many triangles? and How many squares?, and the lesson moves on to the ending once both counts are right.

Step 1: Set the scene

Start a blank lesson (New lesson, then Start from scratch) and name it Count the shapes by clicking Untitled lesson at the top left.

Give the scene a warm background. Click an empty spot on the scene, open Background, click Choose a style, and pick Mesh sunrise. Give the Closing Scene the same background so the ending matches.

Then add a Heading at the top left: How many of each shape?, with Font Size 36.

The Opening Scene on a peach-to-coral gradient with the heading How many of each shape? at the top left
A warm background and the question for the whole scene.

The picture will take the left of the scene, and the right-hand column will hold the two questions and an I'm done button. The 1 validation issue button at the top is the lesson asking for a way to finish; that button clears it in Step 8.

Step 2: Add Pattern Blocks and choose Show

Search the Widgets tab for Pattern Blocks and click it. In Style & Layout, click Show more options, set Width to 640, and drag the widget under the heading.

Select it and click the floating ⚙ Configure button. Under What students do, choose Show.

Show: a picture students look at.
The Configure window with Show chosen under What students do, described as Look at a finished design, for questions like How many triangles? and tagged Not graded, and an empty board under The design
Show is Not graded: the questions beside it do the grading.

Show is tagged Not graded because the picture itself asks nothing. The Number Inputs you add next ask the questions and keep the score. Until there's a picture, the window's footer reminds you to arrange one.

Step 3: Build the house

The board under The design is your working board. It has a tray with all six blocks, and only you see it. Drag blocks out of the tray to make the picture.

  1. Drag an orange square onto the lower middle of the board.
  2. Drag a second orange square beside it.
  3. Drag the red trapezoid on top of both squares, long side down, for the roof.
Two squares and a trapezoid make a house.

You don't have to drop a block exactly. A block let go near another slides over so their sides meet, which is how the roof sits flush on the walls.

The working board with a house of two orange squares under a red trapezoid roof, and the preview on the right showing the same house
The trapezoid's long side is as long as two squares.

The trapezoid's long side is exactly two block sides long, so it covers both squares. To move a block, drag it again. To remove one, drag it back to the tray.

The preview on the right stays empty for now, and a note under the board says You changed the board: students see nothing until you press Use as design in the next step.

Step 4: Add the sun and the trees, then use it as the design

  1. Drag the yellow hexagon to the top right of the board for the sun.
  2. Drag four green triangles onto the ground line, two on each side of the house. Leave a little space between them so each tree stands on its own.
  3. Click an empty patch of sky, then press Use as design.
Sun, trees, then Use as design.
The working board with the yellow hexagon sun at the top right, the house in the middle and four green triangle trees, and the Use as design button underneath; the preview on the right shows the same picture
Students see exactly this picture.

Students see only what you saved with Use as design. If you change the working board afterwards, the window reminds you to press it again. Click Save.

Count what you built before writing the questions: 4 triangles, 2 squares, 1 hexagon and 1 trapezoid. A good counting picture mixes the shape you ask about with other shapes, so children have to look for it.

Step 5: Fit the board and give it a sky

The widget is taller than the picture needs, because Show has no tray. With it selected, open Style & Layout and set Height to 400. Then click the Board color and pick the palest blue in the grid.

A sky-blue board.
The Opening Scene with the pattern block picture on a sky-blue board: the yellow hexagon sun at the top right, the house of two orange squares and a red roof, and four green triangle trees
The picture on the scene.

The blocks keep their classroom colors whatever you pick around them, because children and teachers name them by color.

Give the picture a description for screen readers too: open Accessibility and set Alt Text to A pattern block picture of a house with a red roof, a yellow sun and green trees. A screen reader also hears how many of each block the picture has, so leave the numbers out of the description.

Step 6: Ask how many triangles

  1. Add a Subheading, How many triangles?, with Font Size 24, at the top of the right-hand column.
  2. Search the Widgets tab for Number Input and click it, then click ⚙ Configure.
  3. Set Correct Value to 4 and Largest Answer to 10. Leave Show Step Buttons on.
The answer is 4.
The Number Input's Configure window with Scoring on and worth 1 point, Correct Value 4, Tolerance 0, Smallest Answer 0, Largest Answer 10, Step 1 and Show Step Buttons shown; the preview shows a field between a minus and a plus button
Step buttons let children answer without a keyboard.

The − and + buttons suit children who can count but can't type yet: they tap + once for each triangle they find. Largest Answer 10 keeps the answer in a sensible range.

Click Save. Then, in the properties panel:

  • Rename the widget Triangles (click its name at the top). That's the name on each student's attempt page.
  • Set its Font Size to 28 and its Width to 260, so the number shows clearly between the buttons.
  • Open Accessibility and set Alt Text to How many triangles?. That's what a screen reader says for the box.

Drag it under its question.

The Opening Scene with How many triangles? and a Number Input with minus and plus buttons in the right-hand column, beside the pattern block picture
The first question.

Step 7: Ask how many squares

Repeat Step 6 under the first question: a Subheading How many squares?, and a Number Input with Correct Value 2 and Largest Answer 10, named Squares, at the same size, with Alt Text How many squares?.

The Opening Scene with two questions in the right-hand column, How many triangles? and How many squares?, each above a Number Input with minus and plus buttons
Two questions, one point each.

The line above the canvas now reads 2 Points and Automatically flows to Closing Scene. The scene checks both answers as students give them, and moves on when both are right. A wrong count simply waits, so children can count again.

Step 8: Add an "I'm done" button

Every lesson needs one button that lets a student finish. It's also a way out for a child who gets stuck.

  1. Search the Widgets tab for Submit Button and click it.
  2. In Content, change Label to I'm done and set Submits to Lesson.
  3. Set its Font Size to 20. In Style & Layout, set Background to a dark navy and Text to white. Drag it under the questions.
The finished Opening Scene: the pattern block picture on the left, and How many triangles?, How many squares? and a navy I'm done button on the right
The finished scene.

Step 9: Count in Preview

Click Preview. Students see the picture, the two questions and the button.

The lesson in Preview: the heading, the pattern block house, sun and trees on a sky-blue board, and the two questions with empty answer boxes
What students see first.

Count the way a child who missed a tree might: tap + three times for the triangles, and twice for the squares.

Three triangles is a miscount.
The lesson in Preview with 3 in the triangles box and 2 in the squares box, still on the counting scene
The squares are right, the triangles aren't, so the lesson waits.

The squares are right, but three triangles isn't, so the lesson stays put. Count the trees again, and tap + once more:

Four triangles, and the lesson moves on.
The Closing Scene in Preview reading You finished the lesson! Your score: 2/2
Each question is worth one point.

On each student's attempt page you'll see their answer to Triangles and Squares, so you know which shape a child still miscounts.

What you built

You built a one-scene kindergarten counting lesson with:

  • a Pattern Blocks widget in Show mode, with a house, a sun and four trees you arranged on the working board and saved with Use as design,
  • two Number Inputs, named Triangles and Squares, with step buttons so children answer by tapping, each checking its own count,
  • an I'm done button, and a scene that moves on by itself once both counts are right.

To make the next picture harder, ask about a shape that hides inside others, like the blue rhombus, or ask "How many blocks in all?" To give children a nudge after a miscount, follow Show a hint after two wrong tries. To have them build with the blocks instead of counting them, follow Make a pattern block puzzle.

Take it with you

Make this lesson yours

Add the lesson you just watched being built to your account, then change it for your class: your questions, your pictures, your colors.

Was this tutorial helpful?

Next tutorial