Make geometric patterns
Build rows, checkerboards and repeating tiles with SVG, then spin one petal into a flower. A pattern project for curious beginners.
Ages 8 to 11, about 30 minutes. You will practice: How to repeat a shape by changing one number, How to build a grid and a checkerboard, How a pattern tile repeats itself, How to copy and rotate a shape with use.
Goal: make a repeating pattern, then turn one petal into a flower.
Patterns are shapes that repeat in a way you can predict. Artists, tile makers and weavers have used them for thousands of years. SVG is good at them, because a pattern is mostly numbers that change by the same amount each time. New to the shapes used here? Draw with shapes is a good warm up.
Step 1: A row of circles
Look at the cx numbers: 30, 65, 100, 135, 170. Each one is 35 bigger than the last. That steady jump is what makes a row look neat.
Try this: copy one circle line and add a second row. Use cy="135" and keep the same cx numbers. Then try making the circles in the second row a different color.
Step 2: A checkerboard
A checkerboard has a back color and a front color. Paint one big rectangle for the back. Then paint squares in every other spot. Each square is 40 wide, and each new column starts 40 further across.
Try this: change the gold to navy and the coral to white. Which colors give the strongest contrast, so the squares are easiest to tell apart?
Step 3: Let SVG repeat the tile for you
Typing every square gets tiring. A <pattern> is a small tile that SVG repeats for you. You draw the tile once. Then you fill a big shape with fill="url(#tile)". The tile’s width and height set how big each repeat is.
Try this: change the tile width and height to 25 and the circle to cx="12.5" cy="12.5" r="7". The same code now makes a finer pattern. Keep the circle in the middle of the tile.
Step 4: A diamond tile
A tile can hold any shapes. This one holds a diamond, which is a polygon with four points, and a small dot in the middle. Because the diamond touches the middle of each tile edge, the diamonds seem to link into a chain.
Try this: change the four points to 20,6 34,20 20,34 6,20 to make the diamonds smaller. Do they still look linked?
Step 5: Turn one petal into a flower
Some patterns repeat by turning, not by sliding. Draw one petal and give it an id. Then <use href="#petal"> makes a copy. Add transform="rotate(45 100 100)" to spin the copy 45 degrees around the point 100,100, which is the middle of the picture. A full turn is 360 degrees, so eight petals spaced 45 degrees apart fill the circle exactly.
Try this: delete the rotate(45 ...) copy and the rotate(225 ...) copy. You get a flower with gaps. Then try a flower with six petals by rotating copies 60 degrees apart. Hint: 60, 120, 180, 240, 300.
For teachers and families
Ask: “What is the rule that your pattern follows? Could you describe it in one sentence so a friend could draw it?” As a classroom extension, link this to number patterns. A row that goes 30, 65, 100 is adding 35 each time, so children can predict the next number before they type it. Tiles and rotation also connect to symmetry. When you are ready, try Make a butterfly with symmetry.
Next project: O is for Owl: an alphabet animal